Cleans up datum traitor minimally. (#31978)
* Removes the /custom traitor subtype nonsense. Fixes borged/ai'zed traitors getting law 0. * Not needed anymore
This commit is contained in:
committed by
CitadelStationBot
parent
5bce9bc2b0
commit
0faee43f95
@@ -340,14 +340,13 @@
|
||||
continue
|
||||
if(is_special_character(H))
|
||||
continue
|
||||
H.mind.add_antag_datum(ANTAG_DATUM_TRAITOR_CUSTOM)
|
||||
var/datum/antagonist/traitor/traitordatum = H.mind.has_antag_datum(ANTAG_DATUM_TRAITOR) //original datum self deletes
|
||||
var/datum/antagonist/traitor/human/T = new(H.mind)
|
||||
T.give_objectives = FALSE
|
||||
var/datum/objective/new_objective = new
|
||||
new_objective.owner = H
|
||||
new_objective.explanation_text = objective
|
||||
traitordatum.add_objective(new_objective)
|
||||
traitordatum.equip(FALSE)
|
||||
traitordatum.greet()
|
||||
T.add_objective(new_objective)
|
||||
H.mind.add_antag_datum(T)
|
||||
message_admins("<span class='adminnotice'>[key_name_admin(usr)] used everyone is a traitor secret. Objective is [objective]</span>")
|
||||
log_admin("[key_name(usr)] used everyone is a traitor secret. Objective is [objective]")
|
||||
|
||||
|
||||
@@ -376,8 +376,6 @@
|
||||
if(!transfer_after)
|
||||
mind.active = FALSE
|
||||
mind.transfer_to(R)
|
||||
if(mind.special_role)
|
||||
R.mind.store_memory("In case you look at this after being borged, the objectives are only here until I find a way to make them not show up for you, as I can't simply delete them without screwing up round-end reporting. --NeoFite")
|
||||
else if(transfer_after)
|
||||
R.key = key
|
||||
|
||||
|
||||
Reference in New Issue
Block a user