From 8f35bc76c2ea186f82f8abade7bfc3070dbc3796 Mon Sep 17 00:00:00 2001 From: Kyle Tyo <36606155+VerinSenpai@users.noreply.github.com> Date: Sat, 26 Apr 2025 17:40:44 -0400 Subject: [PATCH] Resolve a warning in SharedAnomalySystem and quell some linter whining. (#36939) * resolve a warning and deal with some linter whining. * Update Content.Shared/Anomaly/SharedAnomalySystem.cs --------- Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> --- Content.Shared/Anomaly/SharedAnomalySystem.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Content.Shared/Anomaly/SharedAnomalySystem.cs b/Content.Shared/Anomaly/SharedAnomalySystem.cs index 61b8cc7f90..666d98bfc6 100644 --- a/Content.Shared/Anomaly/SharedAnomalySystem.cs +++ b/Content.Shared/Anomaly/SharedAnomalySystem.cs @@ -187,7 +187,8 @@ public abstract class SharedAnomalySystem : EntitySystem // Logging before resolve, in case the anomaly has deleted itself. if (_net.IsServer) Log.Info($"Ending anomaly. Entity: {ToPrettyString(uid)}"); - AdminLog.Add(LogType.Anomaly, supercritical ? LogImpact.High : LogImpact.Low, + AdminLog.Add(LogType.Anomaly, + supercritical ? LogImpact.High : LogImpact.Low, $"Anomaly {ToPrettyString(uid)} {(supercritical ? "went supercritical" : "decayed")}."); } @@ -402,7 +403,7 @@ public abstract class SharedAnomalySystem : EntitySystem if (!settings.CanSpawnOnEntities) { var valid = true; - foreach (var ent in grid.GetAnchoredEntities(tileref.GridIndices)) + foreach (var ent in _map.GetAnchoredEntities(xform.GridUid.Value, grid, tileref.GridIndices)) { if (!physQuery.TryGetComponent(ent, out var body)) continue; @@ -429,7 +430,7 @@ public abstract class SharedAnomalySystem : EntitySystem } [DataRecord] -public partial record struct AnomalySpawnSettings() +public record struct AnomalySpawnSettings() { /// /// should entities block spawning? @@ -483,4 +484,4 @@ public partial record struct AnomalySpawnSettings() public bool SpawnOnSeverityChanged { get; set; } = false; } -public sealed partial class ActionAnomalyPulseEvent : InstantActionEvent { } +public sealed partial class ActionAnomalyPulseEvent : InstantActionEvent; -- 2.51.2