Merge pull request #6786 from Mechoid/StabilizerStabilizes

Stabilizer stabilizes stably
This commit is contained in:
Atermonera
2020-03-11 15:52:48 -04:00
committed by VirgoBot
parent 74ad3b1d25
commit 22b8bf18c6
+14 -1
View File
@@ -294,9 +294,22 @@
breather.internals.icon_state = "internal0"
if(breather) // Safety.
if(ishuman(breather))
if(ishuman(breather) && !(breather.isSynthetic()))
var/mob/living/carbon/human/H = breather
if(H.internal_organs_by_name[O_LUNGS])
var/obj/item/organ/internal/L = H.internal_organs_by_name[O_LUNGS]
if(L)
if(!(L.status & ORGAN_DEAD))
H.adjustOxyLoss(-(rand(10,15)))
if(L.is_bruised() && prob(30))
L.take_damage(-1)
else
H.AdjustLosebreath(-(rand(1, 5)))
else
H.adjustOxyLoss(-(rand(1,8)))
if(H.stat == DEAD)
H.add_modifier(/datum/modifier/bloodpump_corpse, 6 SECONDS)