From ed6e07e941e92d5f6a6adf5d469518c72cfc91e8 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Wed, 29 Jun 2022 22:55:59 +1000 Subject: [PATCH] Log kitchen spikings (#9284) Easier to find. --- Content.Server/Kitchen/EntitySystems/KitchenSpikeSystem.cs | 6 ++++++ Content.Shared.Database/LogType.cs | 1 + 2 files changed, 7 insertions(+) diff --git a/Content.Server/Kitchen/EntitySystems/KitchenSpikeSystem.cs b/Content.Server/Kitchen/EntitySystems/KitchenSpikeSystem.cs index db2c418fe3..2ac1300ab5 100644 --- a/Content.Server/Kitchen/EntitySystems/KitchenSpikeSystem.cs +++ b/Content.Server/Kitchen/EntitySystems/KitchenSpikeSystem.cs @@ -1,7 +1,10 @@ +using Content.Server.Administration.Logs; using Content.Server.DoAfter; using Content.Server.Kitchen.Components; using Content.Server.Nutrition.Components; using Content.Server.Popups; +using Content.Shared.Administration.Logs; +using Content.Shared.Database; using Content.Shared.DragDrop; using Content.Shared.Interaction; using Content.Shared.MobState.Components; @@ -20,6 +23,7 @@ namespace Content.Server.Kitchen.EntitySystems { [Dependency] private readonly PopupSystem _popupSystem = default!; [Dependency] private readonly DoAfterSystem _doAfter = default!; + [Dependency] private readonly IAdminLogManager _logger = default!; [Dependency] private readonly IRobustRandom _random = default!; public override void Initialize() @@ -107,6 +111,8 @@ namespace Content.Server.Kitchen.EntitySystems if (!Resolve(uid, ref component) || !Resolve(victimUid, ref butcherable)) return; + _logger.Add(LogType.Gib, LogImpact.Extreme, $"{ToPrettyString(userUid):user} kitchen spiked {ToPrettyString(victimUid):target}"); + // TODO VERY SUS component.PrototypesToSpawn = EntitySpawnCollection.GetSpawns(butcherable.SpawnedEntities, _random); diff --git a/Content.Shared.Database/LogType.cs b/Content.Shared.Database/LogType.cs index 97e54d0d5e..dd0e6a27fd 100644 --- a/Content.Shared.Database/LogType.cs +++ b/Content.Shared.Database/LogType.cs @@ -72,4 +72,5 @@ public enum LogType EmergencyShuttle = 68, // haha so funny Emag = 69, + Gib = 70, }