Add logs to recycler gibbing and broadcasting. (#26008)
* Add logs to things * Make the message log be saved as msg because I forgor before. * Log fails when getting an entity that doesn't exist --------- Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
This commit is contained in:
@@ -19,6 +19,8 @@ using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Utility;
|
||||
using System.Linq;
|
||||
using Content.Server.Administration.Logs;
|
||||
using Content.Shared.Database;
|
||||
|
||||
namespace Content.Server.Materials;
|
||||
|
||||
@@ -35,6 +37,7 @@ public sealed class MaterialReclaimerSystem : SharedMaterialReclaimerSystem
|
||||
[Dependency] private readonly PuddleSystem _puddle = default!;
|
||||
[Dependency] private readonly StackSystem _stack = default!;
|
||||
[Dependency] private readonly SharedMindSystem _mind = default!;
|
||||
[Dependency] private readonly IAdminLogManager _adminLogger = default!;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void Initialize()
|
||||
@@ -154,6 +157,7 @@ public sealed class MaterialReclaimerSystem : SharedMaterialReclaimerSystem
|
||||
|
||||
if (CanGib(uid, item, component))
|
||||
{
|
||||
_adminLogger.Add(LogType.Gib, LogImpact.Extreme, $"{ToPrettyString(item):victim} was gibbed by {ToPrettyString(uid):entity} ");
|
||||
SpawnChemicalsFromComposition(uid, item, completion, false, component, xform);
|
||||
_body.GibBody(item, true);
|
||||
_appearance.SetData(uid, RecyclerVisuals.Bloody, true);
|
||||
|
||||
Reference in New Issue
Block a user