Make AdminLogsSystem an IoC manager (#8492)
* Make log not entity system * Fixes
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Content.Server.Interaction
|
||||
{
|
||||
[Dependency] private readonly ActionBlockerSystem _actionBlockerSystem = default!;
|
||||
[Dependency] private readonly PullingSystem _pullSystem = default!;
|
||||
[Dependency] private readonly AdminLogSystem _adminLogSystem = default!;
|
||||
[Dependency] private readonly IAdminLogManager _adminLogger = default!;
|
||||
[Dependency] private readonly UserInterfaceSystem _uiSystem = default!;
|
||||
|
||||
public override void Initialize()
|
||||
@@ -219,7 +219,7 @@ namespace Content.Server.Interaction
|
||||
|
||||
if (ev.Handled)
|
||||
{
|
||||
_adminLogSystem.Add(LogType.AttackArmedWide, LogImpact.Low, $"{ToPrettyString(user):user} wide attacked with {ToPrettyString(item.Value):used} at {coordinates}");
|
||||
_adminLogger.Add(LogType.AttackArmedWide, LogImpact.Low, $"{ToPrettyString(user):user} wide attacked with {ToPrettyString(item.Value):used} at {coordinates}");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -232,12 +232,12 @@ namespace Content.Server.Interaction
|
||||
{
|
||||
if (target != null)
|
||||
{
|
||||
_adminLogSystem.Add(LogType.AttackArmedClick, LogImpact.Low,
|
||||
_adminLogger.Add(LogType.AttackArmedClick, LogImpact.Low,
|
||||
$"{ToPrettyString(user):user} attacked {ToPrettyString(target.Value):target} with {ToPrettyString(item.Value):used} at {coordinates}");
|
||||
}
|
||||
else
|
||||
{
|
||||
_adminLogSystem.Add(LogType.AttackArmedClick, LogImpact.Low,
|
||||
_adminLogger.Add(LogType.AttackArmedClick, LogImpact.Low,
|
||||
$"{ToPrettyString(user):user} attacked with {ToPrettyString(item.Value):used} at {coordinates}");
|
||||
}
|
||||
|
||||
@@ -260,7 +260,7 @@ namespace Content.Server.Interaction
|
||||
var ev = new WideAttackEvent(user, user, coordinates);
|
||||
RaiseLocalEvent(user, ev, false);
|
||||
if (ev.Handled)
|
||||
_adminLogSystem.Add(LogType.AttackUnarmedWide, LogImpact.Low, $"{ToPrettyString(user):user} wide attacked at {coordinates}");
|
||||
_adminLogger.Add(LogType.AttackUnarmedWide, LogImpact.Low, $"{ToPrettyString(user):user} wide attacked at {coordinates}");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -270,12 +270,12 @@ namespace Content.Server.Interaction
|
||||
{
|
||||
if (target != null)
|
||||
{
|
||||
_adminLogSystem.Add(LogType.AttackUnarmedClick, LogImpact.Low,
|
||||
_adminLogger.Add(LogType.AttackUnarmedClick, LogImpact.Low,
|
||||
$"{ToPrettyString(user):user} attacked {ToPrettyString(target.Value):target} at {coordinates}");
|
||||
}
|
||||
else
|
||||
{
|
||||
_adminLogSystem.Add(LogType.AttackUnarmedClick, LogImpact.Low,
|
||||
_adminLogger.Add(LogType.AttackUnarmedClick, LogImpact.Low,
|
||||
$"{ToPrettyString(user):user} attacked at {coordinates}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user