Merge pull request #12330 from feemjmeem/tanksuicide-refactor

re-enable tank suicide, but retain body and all objects
This commit is contained in:
Jordie
2015-10-29 14:27:37 +11:00
@@ -21,8 +21,20 @@
var/volume = 70
/obj/item/weapon/tank/suicide_act(mob/user)
var/mob/living/carbon/human/H = user
user.visible_message("<span class='suicide'>[user] is putting the [src]'s valve to their lips! I don't think they're gonna stop!</span>")
playsound(loc, 'sound/effects/spray.ogg', 10, 1, -3)
if (H && !qdeleted(H))
for(var/obj/item/W in H)
H.unEquip(W)
if(prob(50))
step(W, pick(alldirs))
H.hair_style = "Bald"
H.update_hair()
H.blood_max = 5
gibs(H.loc, H.viruses, H.dna)
H.adjustBruteLoss(1000) //to make the body super-bloody
return (BRUTELOSS)
/obj/item/weapon/tank/New()