made forced midround antags increase weight by their cost

This is to make sure that threat is really, really used throughout a round, or at least to encourage it to be--people are rightfully annoyed at 70 threat level rounds just not using the vast majority of it.
This commit is contained in:
Putnam
2019-11-11 00:04:51 -08:00
parent c7ac41f880
commit d13301312d
+5 -1
View File
@@ -647,6 +647,7 @@ GLOBAL_VAR_INIT(dynamic_forced_threat_level, -1)
update_playercounts()
if (get_injection_chance())
var/cur_threat_frac = threat/threat_level
var/list/drafted_rules = list()
var/antag_num = current_players[CURRENT_LIVING_ANTAGS].len
for (var/datum/dynamic_ruleset/midround/rule in midround_rules)
@@ -658,7 +659,10 @@ GLOBAL_VAR_INIT(dynamic_forced_threat_level, -1)
continue
rule.trim_candidates()
if (rule.ready())
drafted_rules[rule] = rule.get_weight()
if(!antag_num)
drafted_rules[rule] = round(rule.get_weight() + (rule.cost * cur_threat_frac))
else
drafted_rules[rule] = rule.get_weight()
if (drafted_rules.len > 0)
picking_midround_latejoin_rule(drafted_rules)
else