Swaps emote(me) out for custom_emote().

This commit is contained in:
MistakeNot4892
2021-04-30 16:19:33 +10:00
parent 6608393d7c
commit b4632da349
9 changed files with 21 additions and 21 deletions

View File

@@ -30,11 +30,11 @@
if(inflamed == 1)
if(prob(5))
to_chat(owner, "<span class='warning'>You feel a stinging pain in your abdomen!</span>")
owner.emote("me", 1, "winces slightly.")
owner.custom_emote(VISIBLE_MESSAGE, "winces slightly.")
if(inflamed > 1)
if(prob(3))
to_chat(owner, "<span class='warning'>You feel a stabbing pain in your abdomen!</span>")
owner.emote("me", 1, "winces painfully.")
owner.custom_emote(VISIBLE_MESSAGE, "winces painfully.")
owner.adjustToxLoss(1)
if(inflamed > 2)
if(prob(1))

View File

@@ -15,17 +15,17 @@
if(is_bruised())
if(prob(4))
spawn owner?.emote("me", 1, "coughs up blood!")
spawn owner?.custom_emote(VISIBLE_MESSAGE, "coughs up blood!")
owner.drip(10)
if(prob(8))
spawn owner?.emote("me", 1, "gasps for air!")
spawn owner?.custom_emote(VISIBLE_MESSAGE, "gasps for air!")
owner.AdjustLosebreath(15)
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]
if(Brain.get_control_efficiency() <= 0.8)
if(prob(4 / max(0.1,Brain.get_control_efficiency())))
spawn owner?.emote("me", 1, "gasps for air!")
spawn owner?.custom_emote(VISIBLE_MESSAGE, "gasps for air!")
owner.AdjustLosebreath(round(3 / max(0.1,Brain.get_control_efficiency())))
/obj/item/organ/internal/lungs/proc/rupture()