add signaler logs (#17556)

This commit is contained in:
Chief-Engineer
2023-06-23 07:26:37 -05:00
committed by GitHub
parent 6d52ca1e16
commit 4bd6f921c4

View File

@@ -1,5 +1,7 @@
using Content.Server.Administration.Logs;
using Content.Server.DeviceLinking.Components;
using Content.Server.Explosion.EntitySystems;
using Content.Shared.Database;
using Content.Shared.Interaction.Events;
using Content.Shared.Timing;
@@ -9,6 +11,7 @@ public sealed class SignallerSystem : EntitySystem
{
[Dependency] private readonly DeviceLinkSystem _link = default!;
[Dependency] private readonly UseDelaySystem _useDelay = default!;
[Dependency] private readonly IAdminLogManager _adminLogger = default!;
public override void Initialize()
{
@@ -28,6 +31,8 @@ public sealed class SignallerSystem : EntitySystem
{
if (args.Handled)
return;
_adminLogger.Add(LogType.Action, LogImpact.Low, $"{ToPrettyString(args.User):actor} triggered signaler {ToPrettyString(uid):tool}");
_link.InvokePort(uid, component.Port);
args.Handled = true;
}