Merge pull request #4822 from Fox-McCloud/laughter-demon

Ports TG's Laughter Demon
This commit is contained in:
TheDZD
2016-06-30 11:25:58 -04:00
committed by GitHub
8 changed files with 103 additions and 17 deletions
+13
View File
@@ -1516,6 +1516,19 @@
spell.action.Grant(new_character)
return
/datum/mind/proc/get_ghost(even_if_they_cant_reenter)
for(var/mob/dead/observer/G in dead_mob_list)
if(G.mind == src)
if(G.can_reenter_corpse || even_if_they_cant_reenter)
return G
break
/datum/mind/proc/grab_ghost(force)
var/mob/dead/observer/G = get_ghost(even_if_they_cant_reenter = force)
. = G
if(G)
G.reenter_corpse()
//Initialisation procs
/mob/proc/mind_initialize()
if(mind)