why doesn't nukeops actually check required_enemies (#36056)

* which idiot added pre_setup()

* was I drunk

* Update nuclear.dm
This commit is contained in:
checkraisefold
2018-03-12 02:35:35 -07:00
committed by AnturK
parent 6931e7485a
commit 125eb04202

View File

@@ -21,6 +21,7 @@
/datum/game_mode/nuclear/pre_setup() /datum/game_mode/nuclear/pre_setup()
var/n_agents = min(round(num_players() / 10), antag_candidates.len, agents_possible) var/n_agents = min(round(num_players() / 10), antag_candidates.len, agents_possible)
if(n_agents >= required_enemies)
for(var/i = 0, i < n_agents, ++i) for(var/i = 0, i < n_agents, ++i)
var/datum/mind/new_op = pick_n_take(antag_candidates) var/datum/mind/new_op = pick_n_take(antag_candidates)
pre_nukeops += new_op pre_nukeops += new_op
@@ -28,6 +29,8 @@
new_op.special_role = "Nuclear Operative" new_op.special_role = "Nuclear Operative"
log_game("[new_op.key] (ckey) has been selected as a nuclear operative") log_game("[new_op.key] (ckey) has been selected as a nuclear operative")
return TRUE return TRUE
else
return FALSE
//////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////