From 5290e64361e51a15000c63403d1d3f9802f222c3 Mon Sep 17 00:00:00 2001 From: Ed <96445749+TheShuEd@users.noreply.github.com> Date: Wed, 11 Sep 2024 16:59:39 +0300 Subject: [PATCH] TechAnomaly fixes (#32067) Update TechAnomalySystem.cs --- Content.Server/Anomaly/Effects/TechAnomalySystem.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Server/Anomaly/Effects/TechAnomalySystem.cs b/Content.Server/Anomaly/Effects/TechAnomalySystem.cs index 63174930df..1b2849f1d7 100644 --- a/Content.Server/Anomaly/Effects/TechAnomalySystem.cs +++ b/Content.Server/Anomaly/Effects/TechAnomalySystem.cs @@ -35,9 +35,9 @@ public sealed class TechAnomalySystem : EntitySystem while (query.MoveNext(out var uid, out var tech, out var anom)) { if (_timing.CurTime < tech.NextTimer) - return; + continue; - tech.NextTimer = _timing.CurTime + TimeSpan.FromSeconds(tech.TimerFrequency * anom.Stability); + tech.NextTimer += TimeSpan.FromSeconds(tech.TimerFrequency * anom.Stability); _signal.InvokePort(uid, tech.TimerPort); } @@ -61,7 +61,7 @@ public sealed class TechAnomalySystem : EntitySystem var devices = _lookup.GetEntitiesInRange(Transform(tech).Coordinates, range); if (devices.Count < 1) return; - + for (var i = 0; i < count; i++) { var device = _random.Pick(devices);