No Lung Pop (#9337)

Drowning in the pool no longer causes your lungs to pop.
    You will no longer gasp for air when submerged, instead you will flail violently.
This commit is contained in:
Geeves
2020-07-12 16:19:04 +02:00
committed by GitHub
parent 1618c564a8
commit 4a3fcd288a
6 changed files with 28 additions and 5 deletions
+8 -2
View File
@@ -80,7 +80,10 @@
/obj/item/organ/internal/lungs/proc/handle_failed_breath()
if(prob(15) && !owner.nervous_system_failure())
if(!owner.is_asystole())
owner.emote("gasp")
if(owner.is_submerged())
owner.emote("flail")
else
owner.emote("gasp")
else
owner.emote(pick("shiver","twitch"))
@@ -153,7 +156,10 @@
if(inhale_efficiency < 1)
if(prob(20))
if(inhale_efficiency < 0.8)
owner.emote("gasp")
if(owner.is_submerged())
owner.emote("flail")
else
owner.emote("gasp")
else if(prob(20))
to_chat(owner, SPAN_WARNING("It's hard to breathe..."))
breath_fail_ratio = 1 - inhale_efficiency