Skip to content

Commit

Permalink
Merge pull request #248 from MomoBerri/dynamic-tweaks
Browse files Browse the repository at this point in the history
Tweaks to clamping, sleeper and extended.
  • Loading branch information
dwasint authored Aug 10, 2023
2 parents 783520b + 3625605 commit b3a907b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 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
9 changes: 4 additions & 5 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,10 +629,10 @@
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)
requirements = list(101,101,101,101,101,101,101,101,101,101) //
flags = LONE_RULESET

/datum/dynamic_ruleset/roundstart/extended/pre_execute()
Expand Down

0 comments on commit b3a907b

Please sign in to comment.