Skip to content

Commit

Permalink
tweaks to clamp, sleeper and extended.
Browse files Browse the repository at this point in the history
  • Loading branch information
MomoBerri committed Aug 9, 2023
1 parent e63f7cb commit 46729eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion code/game/gamemodes/dynamic/dynamic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ GLOBAL_VAR_INIT(dynamic_forced_threat_level, -1)
threat_level = round(GLOB.dynamic_forced_threat_level, 0.1)
else
generate_threat()
threat_level = clamp(threat_level,roundstart_pop_ready*0.75, roundstart_pop_ready*2) //Minimum threat is playercount and the max is playercount * 2, grabbed from OG Monke
threat_level = clamp(threat_level,roundstart_pop_ready*1, roundstart_pop_ready*2) //Minimum threat is playercount and the max is playercount * 2, grabbed from OG Monke
generate_budgets()
set_cooldowns()
log_dynamic("Dynamic Mode initialized with a Threat Level of... [threat_level]! ([round_start_budget] round start budget)")
Expand Down
6 changes: 3 additions & 3 deletions code/game/gamemodes/dynamic/dynamic_rulesets_midround.dm
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@
)
required_candidates = 1
minimum_players = 8
weight = 15
cost = 10
requirements = list(20,15,15,15,15,15,15,15,15,15)
weight = 25
cost = 5
requirements = list(8,10,10,10,10,10,10,10,10,10)
repeatable = TRUE

/datum/dynamic_ruleset/midround/from_living/autotraitor/trim_candidates()
Expand Down
7 changes: 3 additions & 4 deletions code/game/gamemodes/dynamic/dynamic_rulesets_roundstart.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@
weight = 5
cost = 8 // Avoid raising traitor threat above this, as it is the default low cost ruleset.
scaling_cost = 9
minimum_players = 8
requirements = list(101,8,8,8,8,8,8,8,8,8)
antag_cap = list("denominator" = 38)

minimum_players = 8

var/autotraitor_cooldown = (15 MINUTES)

/datum/dynamic_ruleset/roundstart/traitor/pre_execute(population)
Expand Down Expand Up @@ -630,8 +629,8 @@
antag_datum = null
restricted_roles = list()
required_candidates = 0
maximum_players = 6
weight = 5
maximum_players = 4
weight = 3
cost = 0
requirements = list(1,101,101,101,101,101,101,101,101,101)
flags = LONE_RULESET
Expand Down

0 comments on commit 46729eb

Please sign in to comment.