diff --git a/code/controllers/configuration/sections/gamemode_configuration.dm b/code/controllers/configuration/sections/gamemode_configuration.dm index d9be626883f..1fc39b62217 100644 --- a/code/controllers/configuration/sections/gamemode_configuration.dm +++ b/code/controllers/configuration/sections/gamemode_configuration.dm @@ -20,6 +20,8 @@ var/traitor_objectives_amount = 2 /// Enable player limits on gamemodes? Disabling can be useful for testing var/enable_gamemode_player_limit = TRUE + /// Should we generate random station traits at game start? + var/add_random_station_traits = TRUE // Dynamically setup a list of all gamemodes /datum/configuration_section/gamemode_configuration/New() @@ -51,6 +53,7 @@ CONFIG_LOAD_BOOL(prevent_mindshield_antags, data["prevent_mindshield_antag"]) CONFIG_LOAD_BOOL(disable_certain_round_early_end, data["disable_certain_round_early_end"]) CONFIG_LOAD_BOOL(enable_gamemode_player_limit, data["enable_gamemode_player_limit"]) + CONFIG_LOAD_BOOL(add_random_station_traits, data["add_random_station_traits"]) CONFIG_LOAD_NUM(traitor_objectives_amount, data["traitor_objective_amount"]) diff --git a/code/controllers/subsystem/processing/SSstation.dm b/code/controllers/subsystem/processing/SSstation.dm index 62901a31c1e..f177094db08 100644 --- a/code/controllers/subsystem/processing/SSstation.dm +++ b/code/controllers/subsystem/processing/SSstation.dm @@ -34,6 +34,9 @@ PROCESSING_SUBSYSTEM_DEF(station) return + if(!GLOB.configuration.gamemode.add_random_station_traits) + return + for(var/i in subtypesof(/datum/station_trait)) var/datum/station_trait/trait_typepath = i diff --git a/config/example/config.toml b/config/example/config.toml index 53d5fd37821..bb01c052363 100644 --- a/config/example/config.toml +++ b/config/example/config.toml @@ -254,6 +254,8 @@ disable_certain_round_early_end = false traitor_objective_amount = 2 # Enable player limits on gamemodes. Disable if testing enable_gamemode_player_limit = true +# Enable to generate zero or more random station traits on game start. +add_random_station_traits = false ################################################################