@@ -1,7 +1,10 @@
|
|||||||
|
using Content.Server.Administration.Logs;
|
||||||
using Content.Server.DoAfter;
|
using Content.Server.DoAfter;
|
||||||
using Content.Server.Kitchen.Components;
|
using Content.Server.Kitchen.Components;
|
||||||
using Content.Server.Nutrition.Components;
|
using Content.Server.Nutrition.Components;
|
||||||
using Content.Server.Popups;
|
using Content.Server.Popups;
|
||||||
|
using Content.Shared.Administration.Logs;
|
||||||
|
using Content.Shared.Database;
|
||||||
using Content.Shared.DragDrop;
|
using Content.Shared.DragDrop;
|
||||||
using Content.Shared.Interaction;
|
using Content.Shared.Interaction;
|
||||||
using Content.Shared.MobState.Components;
|
using Content.Shared.MobState.Components;
|
||||||
@@ -20,6 +23,7 @@ namespace Content.Server.Kitchen.EntitySystems
|
|||||||
{
|
{
|
||||||
[Dependency] private readonly PopupSystem _popupSystem = default!;
|
[Dependency] private readonly PopupSystem _popupSystem = default!;
|
||||||
[Dependency] private readonly DoAfterSystem _doAfter = default!;
|
[Dependency] private readonly DoAfterSystem _doAfter = default!;
|
||||||
|
[Dependency] private readonly IAdminLogManager _logger = default!;
|
||||||
[Dependency] private readonly IRobustRandom _random = default!;
|
[Dependency] private readonly IRobustRandom _random = default!;
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
@@ -107,6 +111,8 @@ namespace Content.Server.Kitchen.EntitySystems
|
|||||||
if (!Resolve(uid, ref component) || !Resolve(victimUid, ref butcherable))
|
if (!Resolve(uid, ref component) || !Resolve(victimUid, ref butcherable))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
_logger.Add(LogType.Gib, LogImpact.Extreme, $"{ToPrettyString(userUid):user} kitchen spiked {ToPrettyString(victimUid):target}");
|
||||||
|
|
||||||
// TODO VERY SUS
|
// TODO VERY SUS
|
||||||
component.PrototypesToSpawn = EntitySpawnCollection.GetSpawns(butcherable.SpawnedEntities, _random);
|
component.PrototypesToSpawn = EntitySpawnCollection.GetSpawns(butcherable.SpawnedEntities, _random);
|
||||||
|
|
||||||
|
|||||||
@@ -72,4 +72,5 @@ public enum LogType
|
|||||||
EmergencyShuttle = 68,
|
EmergencyShuttle = 68,
|
||||||
// haha so funny
|
// haha so funny
|
||||||
Emag = 69,
|
Emag = 69,
|
||||||
|
Gib = 70,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user