Bugfix 4 : everyone traitor

This commit is contained in:
Shifty/Anthomansland
2019-04-26 20:14:49 +02:00
parent 6f928ddd8f
commit 86c4a45c28

View File

@@ -2998,7 +2998,7 @@
log_admin("[key_name(usr)] created a link with central command", 1)
message_admins("<span class='notice'>[key_name_admin(usr)] created a link with central command</span>", 1)
link_to_centcomm()
/*if("traitor_all")
if("traitor_all")
if(!ticker)
alert("The game hasn't started yet!")
return
@@ -3008,31 +3008,29 @@
feedback_inc("admin_secrets_fun_used",1)
feedback_add_details("admin_secrets_fun_used","TA([objective])")
for(var/mob/living/carbon/human/H in player_list)
if(H.stat == 2 || !H.client || !H.mind)
if(H.isDead() || !H.client || !H.mind)
continue
if(is_special_character(H))
continue
//traitorize(H, objective, 0)
ticker.mode.traitors += H.mind
H.mind.special_role = "traitor"
var/datum/objective/new_objective = new
new_objective.owner = H
new_objective.explanation_text = objective
H.mind.objectives += new_objective
ticker.mode.greet_traitor(H.mind)
//ticker.mode.forge_traitor_objectives(H.mind)
ticker.mode.finalize_traitor(H.mind)
var/datum/role/traitor/T = new(H.mind, override = TRUE)
if (T)
T.AppendObjective(new_objective)
T.Greet(GREET_AUTOTATOR) // Mission specifications etc
for(var/mob/living/silicon/A in player_list)
ticker.mode.traitors += A.mind
A.mind.special_role = "traitor"
if(A.isDead() || !A.client || !A.mind)
continue
var/datum/objective/new_objective = new
new_objective.owner = A
new_objective.explanation_text = objective
A.mind.objectives += new_objective
ticker.mode.greet_traitor(A.mind)
ticker.mode.finalize_traitor(A.mind)
var/datum/role/traitor/T = new(A.mind, override = TRUE)
if (T)
T.AppendObjective(new_objective)
T.Greet(GREET_AUTOTATOR)
message_admins("<span class='notice'>[key_name_admin(usr)] used everyone is a traitor secret. Objective is [objective]</span>", 1)
log_admin("[key_name(usr)] used everyone is a traitor secret. Objective is [objective]")*/
log_admin("[key_name(usr)] used everyone is a traitor secret. Objective is [objective]")
if("moveadminshuttle")
feedback_inc("admin_secrets_fun_used",1)
feedback_add_details("admin_secrets_fun_used","ShA")