From 07ffbd2e1fe93ff7a7904ae0cd11051d1cfb41e6 Mon Sep 17 00:00:00 2001 From: san7890 Date: Wed, 12 Oct 2022 14:57:32 -0600 Subject: [PATCH] Prevent mice and satchels from randomly spawning when we're running unit tests (#70443) --- code/controllers/subsystem/minor_mapping.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/controllers/subsystem/minor_mapping.dm b/code/controllers/subsystem/minor_mapping.dm index c0f7dffafbc..79132307ce4 100644 --- a/code/controllers/subsystem/minor_mapping.dm +++ b/code/controllers/subsystem/minor_mapping.dm @@ -6,6 +6,9 @@ SUBSYSTEM_DEF(minor_mapping) flags = SS_NO_FIRE /datum/controller/subsystem/minor_mapping/Initialize() + #ifdef UNIT_TESTS // This whole subsystem just introduces a lot of odd confounding variables into unit test situations, so let's just not bother with doing an initialize here. + return SS_INIT_NO_NEED + #endif // the mice are easily the bigger problem, but let's just avoid anything that could cause some bullshit. trigger_migration(CONFIG_GET(number/mice_roundstart)) place_satchels() return SS_INIT_SUCCESS