Bugfix: Wrote a work around for reviving dead simple animals, who were simply becoming pristine corpses before this. Not the prettiest thing in the world, but blame how simple animals die.

This commit is contained in:
Incoming
2013-12-16 19:19:45 -05:00
parent 6efd7d39e0
commit ae5e6d591f
+20 -2
View File
@@ -38,8 +38,26 @@
if(istype(target,/mob))
var/old_stat = target.stat
target.revive()
target.suiciding = 0
if(isanimal(target) && target.stat == DEAD)
var/mob/living/simple_animal/O = target
var/mob/living/simple_animal/A = new O.type(O.loc)
A.real_name = O.real_name
A.name = O.name
if(iscorgi(O))
var/mob/living/simple_animal/corgi/C = O
if(C.inventory_head)
C.inventory_head.loc = C.loc
if(C.inventory_back)
C.inventory_back.loc = C.loc
if(O.mind)
O.mind.transfer_to(A)
else
A.key = O.key
del(O)
target = A
else
target.revive()
target.suiciding = 0
if(!target.ckey)
for(var/mob/dead/observer/ghost in player_list)
if(target.real_name == ghost.real_name)