Add welder toggle logs (#13303)
This commit is contained in:
@@ -18,6 +18,11 @@ public sealed class ActivateInWorldEvent : HandledEntityEventArgs, ITargetedInte
|
||||
/// </summary>
|
||||
public EntityUid Target { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Set to true when the activation is logged by a specific logger.
|
||||
/// </summary>
|
||||
public bool WasLogged { get; set; }
|
||||
|
||||
public ActivateInWorldEvent(EntityUid user, EntityUid target)
|
||||
{
|
||||
User = user;
|
||||
|
||||
@@ -870,7 +870,8 @@ namespace Content.Shared.Interaction
|
||||
|
||||
DoContactInteraction(user, used, activateMsg);
|
||||
_useDelay.BeginDelay(used, delayComponent);
|
||||
_adminLogger.Add(LogType.InteractActivate, LogImpact.Low, $"{ToPrettyString(user):user} activated {ToPrettyString(used):used}");
|
||||
if (!activateMsg.WasLogged)
|
||||
_adminLogger.Add(LogType.InteractActivate, LogImpact.Low, $"{ToPrettyString(user):user} activated {ToPrettyString(used):used}");
|
||||
return true;
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user