mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
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:
@@ -21,13 +21,16 @@
|
|||||||
|
|
||||||
/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)
|
||||||
for(var/i = 0, i < n_agents, ++i)
|
if(n_agents >= required_enemies)
|
||||||
var/datum/mind/new_op = pick_n_take(antag_candidates)
|
for(var/i = 0, i < n_agents, ++i)
|
||||||
pre_nukeops += new_op
|
var/datum/mind/new_op = pick_n_take(antag_candidates)
|
||||||
new_op.assigned_role = "Nuclear Operative"
|
pre_nukeops += new_op
|
||||||
new_op.special_role = "Nuclear Operative"
|
new_op.assigned_role = "Nuclear Operative"
|
||||||
log_game("[new_op.key] (ckey) has been selected as a nuclear operative")
|
new_op.special_role = "Nuclear Operative"
|
||||||
return TRUE
|
log_game("[new_op.key] (ckey) has been selected as a nuclear operative")
|
||||||
|
return TRUE
|
||||||
|
else
|
||||||
|
return FALSE
|
||||||
////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////
|
||||||
////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user