Lung Rescue Things (#9500)

* Lung Rescue Things

* more fixing

* Update code/modules/reagents/reagent_containers/syringes.dm

Co-authored-by: Matt Atlas <mattiathebest2000@hotmail.it>

Co-authored-by: Matt Atlas <mattiathebest2000@hotmail.it>
This commit is contained in:
Geeves
2020-08-01 01:48:25 +02:00
committed by GitHub
parent 0c61353287
commit 7b1ca11afd
5 changed files with 52 additions and 18 deletions
+18 -6
View File
@@ -65,11 +65,17 @@
)
owner.losebreath = round(damage/2)
if(is_bruised() && rescued)
if(prob(4))
to_chat(owner, SPAN_WARNING("It feels hard to breathe..."))
if (owner.losebreath < 5)
owner.losebreath = min(owner.losebreath + 1, 5) // it's still not good, but it's much better than an untreated collapsed lung
if(rescued)
if(is_bruised())
if(prob(4))
to_chat(owner, SPAN_WARNING("It feels hard to breathe..."))
if (owner.losebreath < 5)
owner.losebreath = min(owner.losebreath + 1, 5) // it's still not good, but it's much better than an untreated collapsed lung
else
if(prob(2))
to_chat(owner, SPAN_WARNING("It feels hard to breathe, and something in your chest is whistling..."))
if (owner.losebreath < 2)
owner.losebreath = min(owner.losebreath + 1, 2)
/obj/item/organ/internal/lungs/proc/rupture()
var/obj/item/organ/external/parent = owner.get_organ(parent_organ)
@@ -328,6 +334,8 @@
. = list()
if(is_bruised())
. += "[pick("wheezing", "gurgling")] sounds"
if(rescued)
. += "a whistling sound"
var/list/breathtype = list()
if(get_oxygen_deprivation() > 50)
@@ -341,5 +349,9 @@
return english_list(.)
/obj/item/organ/internal/lungs/surgical_fix(mob/user)
..()
rescued = FALSE
#undef HUMAN_MAX_OXYLOSS
#undef HUMAN_CRIT_MAX_OXYLOSS
#undef HUMAN_CRIT_MAX_OXYLOSS