diff --git a/Content.Server/Power/EntitySystems/BatteryInterfaceSystem.cs b/Content.Server/Power/EntitySystems/BatteryInterfaceSystem.cs index 6ce19cfaf6..33e3f8ff2c 100644 --- a/Content.Server/Power/EntitySystems/BatteryInterfaceSystem.cs +++ b/Content.Server/Power/EntitySystems/BatteryInterfaceSystem.cs @@ -1,4 +1,6 @@ -using Content.Server.Power.Components; +using Content.Server.Administration.Logs; +using Content.Server.Power.Components; +using Content.Shared.Database; using Content.Shared.Power; using Robust.Server.GameObjects; @@ -19,6 +21,7 @@ namespace Content.Server.Power.EntitySystems; /// public sealed class BatteryInterfaceSystem : EntitySystem { + [Dependency] private readonly IAdminLogManager _adminLog = default!; [Dependency] private readonly UserInterfaceSystem _uiSystem = null!; public override void Initialize() @@ -43,12 +46,16 @@ public sealed class BatteryInterfaceSystem : EntitySystem { var netBattery = Comp(ent); netBattery.CanCharge = args.On; + + _adminLog.Add(LogType.Action,$"{ToPrettyString(args.Actor):actor} set input breaker to {args.On} on {ToPrettyString(ent):target}"); } private void HandleSetOutputBreaker(Entity ent, ref BatterySetOutputBreakerMessage args) { var netBattery = Comp(ent); netBattery.CanDischarge = args.On; + + _adminLog.Add(LogType.Action,$"{ToPrettyString(args.Actor):actor} set output breaker to {args.On} on {ToPrettyString(ent):target}"); } private void HandleSetChargeRate(Entity ent, ref BatterySetChargeRateMessage args)