From 9aef8f2c88ae6db165d15b3b52ccad31c7ea45a9 Mon Sep 17 00:00:00 2001 From: lessthanthree <83487515+lessthnthree@users.noreply.github.com> Date: Wed, 3 May 2023 17:46:46 -0700 Subject: [PATCH] Adds map filter to SSdecay (#20929) Update decaySS.dm --- modular_skyrat/modules/decay_subsystem/code/decaySS.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modular_skyrat/modules/decay_subsystem/code/decaySS.dm b/modular_skyrat/modules/decay_subsystem/code/decaySS.dm index 2aa0274ca8a..c4a8959641a 100644 --- a/modular_skyrat/modules/decay_subsystem/code/decaySS.dm +++ b/modular_skyrat/modules/decay_subsystem/code/decaySS.dm @@ -22,6 +22,8 @@ SUBSYSTEM_DEF(decay) flags = SS_NO_FIRE init_order = INIT_ORDER_DECAY + /// This is used to determine what maps we should not spawn on. + var/list/station_filter = list("Birdshot Station", "Runtime Station", "MultiZ Debug") var/list/possible_turfs = list() var/list/possible_areas = list() var/severity_modifier = 1 @@ -39,6 +41,11 @@ SUBSYSTEM_DEF(decay) log_world("SSDecay was disabled in config.") return SS_INIT_NO_NEED + if(SSmapping.config.map_name in station_filter) + message_admins("SSDecay was disabled due to map filter.") + log_world("SSDecay was disabled due to map filter.") + return SS_INIT_NO_NEED + // Putting this first so that it just doesn't waste time iterating through everything if it's not going to do anything anyway. if(prob(50)) message_admins("SSDecay will not interact with this round.")