]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix anomaly decay logs (#26180)
authorLordCarve <27449516+LordCarve@users.noreply.github.com>
Sat, 16 Mar 2024 17:31:21 +0000 (18:31 +0100)
committerGitHub <noreply@github.com>
Sat, 16 Mar 2024 17:31:21 +0000 (13:31 -0400)
Fix anomaly decay logs (#26122)

Content.Shared/Anomaly/SharedAnomalySystem.cs

index 6cdcdf305bbbd0734f0bebdd4d28d0b11aa4c948..78b198be8010bff03af0922726adeb1f6ad5cc0d 100644 (file)
@@ -133,7 +133,7 @@ public abstract class SharedAnomalySystem : EntitySystem
         if (HasComp<AnomalySupercriticalComponent>(uid))
             return;
 
-        AdminLog.Add(LogType.Anomaly, LogImpact.High, $"Anomaly {ToPrettyString(uid)} began to go supercritical.");
+        AdminLog.Add(LogType.Anomaly, LogImpact.Extreme, $"Anomaly {ToPrettyString(uid)} began to go supercritical.");
         if (_net.IsServer)
             _sawmill.Info($"Anomaly is going supercritical. Entity: {ToPrettyString(uid)}");
 
@@ -180,7 +180,8 @@ public abstract class SharedAnomalySystem : EntitySystem
         // Logging before resolve, in case the anomaly has deleted itself.
         if (_net.IsServer)
             _sawmill.Info($"Ending anomaly. Entity: {ToPrettyString(uid)}");
-        AdminLog.Add(LogType.Anomaly, LogImpact.Extreme, $"Anomaly {ToPrettyString(uid)} went supercritical.");
+        AdminLog.Add(LogType.Anomaly, supercritical ? LogImpact.High : LogImpact.Low,
+                     $"Anomaly {ToPrettyString(uid)} {(supercritical ? "went supercritical" : "decayed")}.");
 
         if (!Resolve(uid, ref component))
             return;