mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 12:13:06 +00:00
Fix stupid lung runtime
This commit is contained in:
@@ -15,17 +15,20 @@
|
|||||||
|
|
||||||
if(is_bruised())
|
if(is_bruised())
|
||||||
if(prob(4))
|
if(prob(4))
|
||||||
spawn owner.emote("me", 1, "coughs up blood!")
|
spawn()
|
||||||
|
owner?.emote("me", 1, "coughs up blood!")
|
||||||
owner.drip(10)
|
owner.drip(10)
|
||||||
if(prob(8))
|
if(prob(8))
|
||||||
spawn owner.emote("me", 1, "gasps for air!")
|
spawn()
|
||||||
|
owner?.emote("me", 1, "gasps for air!")
|
||||||
owner.AdjustLosebreath(15)
|
owner.AdjustLosebreath(15)
|
||||||
|
|
||||||
if(owner.internal_organs_by_name[O_BRAIN]) // As the brain starts having Trouble, the lungs start malfunctioning.
|
if(owner.internal_organs_by_name[O_BRAIN]) // As the brain starts having Trouble, the lungs start malfunctioning.
|
||||||
var/obj/item/organ/internal/brain/Brain = owner.internal_organs_by_name[O_BRAIN]
|
var/obj/item/organ/internal/brain/Brain = owner.internal_organs_by_name[O_BRAIN]
|
||||||
if(Brain.get_control_efficiency() <= 0.8)
|
if(Brain.get_control_efficiency() <= 0.8)
|
||||||
if(prob(4 / max(0.1,Brain.get_control_efficiency())))
|
if(prob(4 / max(0.1,Brain.get_control_efficiency())))
|
||||||
spawn owner.emote("me", 1, "gasps for air!")
|
spawn()
|
||||||
|
owner?.emote("me", 1, "gasps for air!")
|
||||||
owner.AdjustLosebreath(round(3 / max(0.1,Brain.get_control_efficiency())))
|
owner.AdjustLosebreath(round(3 / max(0.1,Brain.get_control_efficiency())))
|
||||||
|
|
||||||
/obj/item/organ/internal/lungs/proc/rupture()
|
/obj/item/organ/internal/lungs/proc/rupture()
|
||||||
|
|||||||
Reference in New Issue
Block a user