diff --git a/Content.Shared/Administration/Logs/LogType.cs b/Content.Shared/Administration/Logs/LogType.cs index 680faea281..f2e264c4e0 100644 --- a/Content.Shared/Administration/Logs/LogType.cs +++ b/Content.Shared/Administration/Logs/LogType.cs @@ -7,4 +7,5 @@ public enum LogType // DamageChange = 1 Damaged = 2, Healed = 3, + Slip = 4, } diff --git a/Content.Shared/Slippery/SharedSlipperySystem.cs b/Content.Shared/Slippery/SharedSlipperySystem.cs index 411d22ca26..e5c160ee6b 100644 --- a/Content.Shared/Slippery/SharedSlipperySystem.cs +++ b/Content.Shared/Slippery/SharedSlipperySystem.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; +using Content.Shared.Administration.Logs; using Content.Shared.StatusEffect; using Content.Shared.Stunnable; using JetBrains.Annotations; @@ -16,10 +17,11 @@ namespace Content.Shared.Slippery [UsedImplicitly] public abstract class SharedSlipperySystem : EntitySystem { + [Dependency] private readonly SharedAdminLogSystem _adminLog = default!; [Dependency] private readonly SharedStunSystem _stunSystem = default!; [Dependency] private readonly StatusEffectsSystem _statusEffectsSystem = default!; - private List _slipped = new(); + private readonly List _slipped = new(); public override void Initialize() { @@ -98,6 +100,8 @@ namespace Content.Shared.Slippery PlaySound(component); + _adminLog.Add(LogType.Slip, $"{component.Owner} slipped on collision with {otherBody.Owner}"); + return true; }