Update PA admin warnings (#28911)
With singulo fixed, PA strength 3 and below (level 2) are now safe. Update the admin logging to reflect this.
This commit is contained in:
@@ -159,11 +159,10 @@ public sealed partial class ParticleAcceleratorSystem
|
|||||||
var impact = strength switch
|
var impact = strength switch
|
||||||
{
|
{
|
||||||
ParticleAcceleratorPowerState.Standby => LogImpact.Low,
|
ParticleAcceleratorPowerState.Standby => LogImpact.Low,
|
||||||
ParticleAcceleratorPowerState.Level0 => LogImpact.Medium,
|
ParticleAcceleratorPowerState.Level0
|
||||||
ParticleAcceleratorPowerState.Level1 => LogImpact.High,
|
or ParticleAcceleratorPowerState.Level1
|
||||||
ParticleAcceleratorPowerState.Level2
|
or ParticleAcceleratorPowerState.Level2 => LogImpact.Medium,
|
||||||
or ParticleAcceleratorPowerState.Level3
|
ParticleAcceleratorPowerState.Level3 => LogImpact.Extreme,
|
||||||
or _ => LogImpact.Extreme,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_adminLogger.Add(LogType.Action, impact, $"{ToPrettyString(player):player} has set the strength of {ToPrettyString(uid)} to {strength}");
|
_adminLogger.Add(LogType.Action, impact, $"{ToPrettyString(player):player} has set the strength of {ToPrettyString(uid)} to {strength}");
|
||||||
|
|||||||
@@ -822,7 +822,7 @@ namespace Content.Shared.CCVar
|
|||||||
/// Minimum particle accelerator strength to create an admin alert message.
|
/// Minimum particle accelerator strength to create an admin alert message.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly CVarDef<int> AdminAlertParticleAcceleratorMinPowerState =
|
public static readonly CVarDef<int> AdminAlertParticleAcceleratorMinPowerState =
|
||||||
CVarDef.Create("admin.alert.particle_accelerator_min_power_state", 3, CVar.SERVERONLY);
|
CVarDef.Create("admin.alert.particle_accelerator_min_power_state", 5, CVar.SERVERONLY); // strength 4
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Should the ban details in admin channel include PII? (IP, HWID, etc)
|
/// Should the ban details in admin channel include PII? (IP, HWID, etc)
|
||||||
|
|||||||
Reference in New Issue
Block a user