[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 <the@san7890.com>
This commit is contained in:
SkyratBot
2022-10-12 17:44:33 -04:00
committed by GitHub
co-authored by san7890
parent fd2e8af5c1
commit 2defe4a7f1
@@ -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