Skip to content

Commit

Permalink
Fix anomaly decay logs (#26180)
Browse files Browse the repository at this point in the history
Fix anomaly decay logs (#26122)
  • Loading branch information
LordCarve authored and DangerRevolution committed Mar 21, 2024
1 parent 0ef2cec commit f13458a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Content.Shared/Anomaly/SharedAnomalySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void StartSupercriticalEvent(EntityUid uid)
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)}");

Expand Down Expand Up @@ -180,7 +180,8 @@ public void EndAnomaly(EntityUid uid, AnomalyComponent? component = null, bool s
// 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;
Expand Down

0 comments on commit f13458a

Please sign in to comment.