mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
[MODULAR] Configurable threat budget split (#23060)
* make config flag * Update configuration.dm * Update modular_skyrat/master_files/code/game/gamemodes/dynamic.dm Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> * Update config/skyrat/skyrat_config.txt Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> --------- Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
This commit is contained in:
co-authored by
GoldenAlpharex
parent
5ea5cfe989
commit
2ddde6a731
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user