From e93f886ff75a67bfbfaf797f988ae64097013fb2 Mon Sep 17 00:00:00 2001 From: Partmedia Date: Thu, 13 Jun 2024 12:15:15 +1000 Subject: [PATCH] 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. (cherry picked from commit dc0327c3c0c7834823aeaf7e11eef6993e5fdc77) --- .../ParticleAcceleratorSystem.ControlBox.cs | 9 ++++----- Content.Shared/CCVar/CCVars.Admin.cs | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Content.Server/ParticleAccelerator/EntitySystems/ParticleAcceleratorSystem.ControlBox.cs b/Content.Server/ParticleAccelerator/EntitySystems/ParticleAcceleratorSystem.ControlBox.cs index 14dca2c7bb..b022568c6e 100644 --- a/Content.Server/ParticleAccelerator/EntitySystems/ParticleAcceleratorSystem.ControlBox.cs +++ b/Content.Server/ParticleAccelerator/EntitySystems/ParticleAcceleratorSystem.ControlBox.cs @@ -160,11 +160,10 @@ public sealed partial class ParticleAcceleratorSystem var impact = strength switch { ParticleAcceleratorPowerState.Standby => LogImpact.Low, - ParticleAcceleratorPowerState.Level0 => LogImpact.Medium, - ParticleAcceleratorPowerState.Level1 => LogImpact.High, - ParticleAcceleratorPowerState.Level2 - or ParticleAcceleratorPowerState.Level3 - or _ => LogImpact.Extreme, + ParticleAcceleratorPowerState.Level0 + or ParticleAcceleratorPowerState.Level1 + or ParticleAcceleratorPowerState.Level2 => LogImpact.Medium, + ParticleAcceleratorPowerState.Level3 => LogImpact.Extreme, }; _adminLogger.Add(LogType.Action, impact, $"{ToPrettyString(player):player} has set the strength of {ToPrettyString(uid)} to {strength}"); diff --git a/Content.Shared/CCVar/CCVars.Admin.cs b/Content.Shared/CCVar/CCVars.Admin.cs index 668faf52dc..5871530444 100644 --- a/Content.Shared/CCVar/CCVars.Admin.cs +++ b/Content.Shared/CCVar/CCVars.Admin.cs @@ -108,7 +108,7 @@ public sealed partial class CCVars /// Minimum particle accelerator strength to create an admin alert message. /// public static readonly CVarDef 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 /// /// Should the ban details in admin channel include PII? (IP, HWID, etc)