More dynamic logging (#26874)

This commit is contained in:
DamianX
2020-06-18 13:26:12 +02:00
committed by GitHub
parent 2b414da0cd
commit b475c04fce
3 changed files with 4 additions and 1 deletions

View File

@@ -250,6 +250,7 @@ var/stacking_limit = 90
rule.mode = src rule.mode = src
rule.candidates = candidates.Copy() rule.candidates = candidates.Copy()
rule.trim_candidates() rule.trim_candidates()
if (rule.ready(1))//ignoring enemy job requirements if (rule.ready(1))//ignoring enemy job requirements
picking_roundstart_rule(list(rule)) picking_roundstart_rule(list(rule))
forced_rules++ forced_rules++
@@ -298,7 +299,7 @@ var/stacking_limit = 90
var/i = 0 var/i = 0
var/list/drafted_rules = list() var/list/drafted_rules = list()
for (var/datum/dynamic_ruleset/roundstart/rule in roundstart_rules) for (var/datum/dynamic_ruleset/roundstart/rule in roundstart_rules)
if (rule.acceptable(roundstart_pop_ready,threat_level) && threat >= rule.cost) //if we got the population and threat required if (rule.acceptable(roundstart_pop_ready,threat_level) && threat >= rule.cost) //if we got the population and threat required
i++ //we check whether we've got eligible players i++ //we check whether we've got eligible players

View File

@@ -283,6 +283,7 @@
continue continue
/datum/dynamic_ruleset/roundstart/ready(var/forced = 0) /datum/dynamic_ruleset/roundstart/ready(var/forced = 0)
message_admins("[name]: [length(candidates)] candidates")
if (!forced) if (!forced)
if(!check_enemy_jobs(FALSE)) if(!check_enemy_jobs(FALSE))
return 0 return 0

View File

@@ -330,6 +330,7 @@
var/indice_pop = min(10, round(mode.roundstart_pop_ready/5) + 1) var/indice_pop = min(10, round(mode.roundstart_pop_ready/5) + 1)
var/operatives = operative_cap[indice_pop] var/operatives = operative_cap[indice_pop]
message_admins("[name]: indice_pop = [indice_pop], operatives = [operatives]")
var/leader = 1 var/leader = 1
for(var/operatives_number = 1 to operatives) for(var/operatives_number = 1 to operatives)
if(candidates.len <= 0) if(candidates.len <= 0)