]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Update PA admin warnings (#28911)
authorPartmedia <kevinz5000@gmail.com>
Thu, 13 Jun 2024 02:15:15 +0000 (18:15 -0800)
committerGitHub <noreply@github.com>
Thu, 13 Jun 2024 02:15:15 +0000 (22:15 -0400)
With singulo fixed, PA strength 3 and below (level 2) are now safe.
Update the admin logging to reflect this.

Content.Server/ParticleAccelerator/EntitySystems/ParticleAcceleratorSystem.ControlBox.cs
Content.Shared/CCVar/CCVars.cs

index f3cff9f2e72966b8632c765ac714450aed191f18..80f398c0a79e65a33974503aa87044b7e68142ce 100644 (file)
@@ -159,11 +159,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}");
index 2ae5c6bd5bd7bd2e80067a229989ad0d2f4064dd..f3025f326aa8d127955541091cae539a809e9504 100644 (file)
@@ -822,7 +822,7 @@ namespace Content.Shared.CCVar
         ///     Minimum particle accelerator strength to create an admin alert message.
         /// </summary>
         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>
         ///     Should the ban details in admin channel include PII? (IP, HWID, etc)