Stops anomalies from running off during CI and causing a flaky mapping nearstation error (#89796)

## About The Pull Request

The anomaly ruin has several anomalies floating in space. They have a
nearstation area on their tile, but the problem is there is a chance
that they can move before the mapping_nearstation unit test completes,
causing them to be in a non-area and ruining the run.

This PR just ensures that they stay in place during unit tests.
This commit is contained in:
Bloop
2025-03-12 17:18:45 -04:00
committed by Roxy
parent 517f9d5cbd
commit 0a0d8e11d5
2 changed files with 4 additions and 0 deletions
@@ -75,8 +75,10 @@
return ..()
/obj/effect/anomaly/proc/anomalyEffect(seconds_per_tick)
#ifndef UNIT_TESTS // These might move away during a CI run and cause a flaky mapping nearstation errors
if(SPT_PROB(move_chance, seconds_per_tick))
move_anomaly()
#endif
/// Move in a direction
/obj/effect/anomaly/proc/move_anomaly()
@@ -85,8 +85,10 @@
)
/obj/effect/anomaly/hallucination/decoy/anomalyEffect(seconds_per_tick)
#ifndef UNIT_TESTS // These might move away during a CI run and cause a flaky mapping nearstation errors
if(SPT_PROB(move_chance, seconds_per_tick))
move_anomaly()
#endif
/obj/effect/anomaly/hallucination/decoy/analyzer_act(mob/living/user, obj/item/analyzer/tool)
to_chat(user, span_notice("You activate [tool]. [replacetext(report_text, "%TOOL%", "[tool]")]"))