"A Working Datum Antagonist"

This commit is contained in:
Joan Lung
2016-09-19 13:03:22 -04:00
parent a43816bcfa
commit 3ec7e81131
7 changed files with 226 additions and 135 deletions
+4
View File
@@ -83,6 +83,10 @@
if(new_character.mind) //disassociate any mind currently in our new body's mind variable
new_character.mind.current = null
if(istype(current) && islist(current.antag_datums)) //wow apparently current isn't always living good fucking job SOMEONE
for(var/i in current.antag_datums)
var/datum/antag_datum/D = i
D.transfer_to_new_body(new_character)
var/datum/atom_hud/antag/hud_to_transfer = antag_hud//we need this because leave_hud() will clear this list
leave_all_huds() //leave all the huds in the old body, so it won't get huds if somebody else enters it
current = new_character //associate ourself with our new body