From 2defe4a7f15b0c5448f950bb46e4ef87a3e6556b Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 12 Oct 2022 23:44:33 +0200 Subject: [PATCH] [MIRROR] Prevent mice from randomly spawning when we're running unit tests [MDB IGNORE] (#16823) * Prevent mice and satchels from randomly spawning when we're running unit tests (#70443) * Prevent mice from randomly spawning when we're running unit tests Co-authored-by: san7890 --- 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