mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
21 lines
826 B
C#
21 lines
826 B
C#
using Content.Shared.Administration.Logs;
|
|
using Content.Shared.Database;
|
|
using Content.Shared.Ghost;
|
|
using Content.Shared.Mind.Components;
|
|
using Content.Shared.Teleportation.Systems;
|
|
using Robust.Shared.Map;
|
|
|
|
namespace Content.Server.Teleportation;
|
|
|
|
public sealed partial class PortalSystem : SharedPortalSystem
|
|
{
|
|
[Dependency] private ISharedAdminLogManager _adminLogger = default!;
|
|
|
|
// TODO Move to shared
|
|
protected override void LogTeleport(EntityUid portal, EntityUid subject, EntityCoordinates source,
|
|
EntityCoordinates target)
|
|
{
|
|
if (HasComp<MindContainerComponent>(subject) && !HasComp<GhostComponent>(subject))
|
|
_adminLogger.Add(LogType.Teleport, LogImpact.Low, $"{ToPrettyString(subject):player} teleported via {ToPrettyString(portal)} from {source} to {target}");
|
|
}
|
|
}
|