using Content.Server.Body.Systems;
using Content.Server.Kitchen.Components;
+using Content.Shared.Administration.Logs;
using Content.Shared.Body.Components;
+using Content.Shared.Database;
using Content.Shared.Interaction;
using Content.Shared.Nutrition.Components;
using Content.Shared.Popups;
[Dependency] private readonly ContainerSystem _containerSystem = default!;
[Dependency] private readonly MobStateSystem _mobStateSystem = default!;
[Dependency] private readonly IRobustRandom _robustRandom = default!;
+ [Dependency] private readonly ISharedAdminLogManager _adminLogger = default!;
public override void Initialize()
{
BreakOnDamage = true,
NeedHand = true
};
-
_doAfterSystem.TryStartDoAfter(doAfter);
}
_destructibleSystem.DestroyEntity(args.Args.Target.Value);
args.Handled = true;
+
+ _adminLogger.Add(LogType.Gib,
+ $"{EntityManager.ToPrettyString(args.User):user} " +
+ $"has butchered {EntityManager.ToPrettyString(args.Target):target} " +
+ $"with {EntityManager.ToPrettyString(args.Used):knife}");
}
private void OnGetInteractionVerbs(EntityUid uid, ButcherableComponent component, GetVerbsEvent<InteractionVerb> args)