diff --git a/config/skyrat/skyrat_config.txt b/config/skyrat/skyrat_config.txt index e53561da50e..16efb7a3b67 100644 --- a/config/skyrat/skyrat_config.txt +++ b/config/skyrat/skyrat_config.txt @@ -80,6 +80,9 @@ ROLE_ASSIGN_CHANNEL_ID ##Rockplanet Ruins Budget ROCKPLANET_BUDGET 60 +## Splits the rounds threat budget between midrounds and roundstart +#SPLIT_THREAT_BUDGET + ##Player controlled mob spawn text PC_MOB_TEXT As a player controlled mob you are expected to play the role to the best of your ability. This means if you're an animal, act like one. You shouldn't display much intelligence if any. This also means if you're engaging in combat you should refrain from mercing people fully. Play not to win but to create a challenge. You're there to replace AI, make others enjoy the situation as well. If your simple mob is not above simple or mute intelligence, using structures such as welding tanks/canisters/boxes to hinder your opponent is entirely forbidden. Do not do this. diff --git a/modular_skyrat/master_files/code/_globalvars/configuration.dm b/modular_skyrat/master_files/code/_globalvars/configuration.dm index 44053f3fecd..fdd54c7498d 100644 --- a/modular_skyrat/master_files/code/_globalvars/configuration.dm +++ b/modular_skyrat/master_files/code/_globalvars/configuration.dm @@ -63,3 +63,6 @@ GLOBAL_VAR_INIT(looc_allowed, TRUE) // Minimum alert level for pods to actually evacuate people /datum/config_entry/number/minimum_alert_for_pods + +/// Split the threat budget between roundstart and midrounds +/datum/config_entry/flag/split_threat_budget diff --git a/modular_skyrat/master_files/code/game/gamemodes/dynamic.dm b/modular_skyrat/master_files/code/game/gamemodes/dynamic.dm index 0170809289c..4c27c0edde0 100644 --- a/modular_skyrat/master_files/code/game/gamemodes/dynamic.dm +++ b/modular_skyrat/master_files/code/game/gamemodes/dynamic.dm @@ -28,8 +28,11 @@ /// Desired median point for midrounds, plus or minus the midround_roll_distance. var/midround_median_frequency = 36000 -/// Divides threat budget, in this case pure midround because Skyrat doesn't have roundstart antags. +/// Divides threat budget based on the server config /datum/game_mode/dynamic/generate_budgets() + if(CONFIG_GET(flag/split_threat_budget)) + return ..() + round_start_budget = 0 initial_round_start_budget = 0 mid_round_budget = threat_level