Updated admin revive to work with organs and bloodloss

This commit is contained in:
Chinsky
2012-11-09 18:03:57 +04:00
parent 18f56f4a38
commit 7a8899cf42
3 changed files with 19 additions and 2 deletions
@@ -828,3 +828,20 @@
spawn(350) //wait 35 seconds before next volley
lastpuke = 0
/mob/living/carbon/human/revive()
for (var/datum/organ/external/O in organs)
O.status &= ~ORGAN_BROKEN
O.status &= ~ORGAN_BLEEDING
O.status &= ~ORGAN_SPLINTED
O.status &= ~ORGAN_ATTACHABLE
if (!O.amputated)
O.status &= ~ORGAN_DESTROYED
O.wounds.Cut()
vessel.add_reagent("blood",560-vessel.total_volume)
fixblood()
for (var/obj/item/weapon/organ/head/H in world)
if(H.brainmob.real_name == src.real_name)
..()