Actually fixes lung rupturing and does so with less runtimes

This commit is contained in:
Yoshax
2016-08-16 17:55:08 +01:00
parent 8e2edd03f7
commit dd0bea114a
2 changed files with 13 additions and 10 deletions
+3 -4
View File
@@ -18,16 +18,15 @@
owner.emote("cough") //respitory tract infection
if(is_bruised())
if(prob(2))
if(prob(4))
spawn owner.emote("me", 1, "coughs up blood!")
owner.drip(10)
if(prob(4))
if(prob(8))
spawn owner.emote("me", 1, "gasps for air!")
owner.losebreath += 15
/obj/item/organ/internal/lungs/proc/rupture()
var/obj/item/organ/external/parent = owner.get_organ(parent_organ)
if(istype(parent))
owner.custom_pain("You feel a stabbing pain in your [parent.name]!", 1)
parent.bruise()
bruise()