mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
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:
@@ -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]")]"))
|
||||
|
||||
Reference in New Issue
Block a user