temporary hotfix* for people screaming while unconscious (#5032)

This commit is contained in:
silicons
2023-02-05 18:29:25 +01:00
committed by GitHub
parent 993cdb5bc3
commit 8d93edfdf4
+3 -2
View File
@@ -195,7 +195,8 @@
if(status & ORGAN_BROKEN && brute)
jostle_bone(brute)
if(organ_can_feel_pain() && prob(40) && !isbelly(owner.loc) && !istype(owner.loc, /obj/item/dogborg/sleeper)) owner.emote("scream") //getting hit on broken hand hurts
if(organ_can_feel_pain() && IS_CONSCIOUS(owner) && prob(40) && !isbelly(owner.loc) && !istype(owner.loc, /obj/item/dogborg/sleeper))
owner.emote("scream") //getting hit on broken hand hurts
if(used_weapon)
add_autopsy_data("[used_weapon]", brute + burn)
@@ -986,7 +987,7 @@ Note that amputating the affected organ does in fact remove the infection from t
"<span class='danger'>Something feels like it shattered in your [name]!</span>",\
"<span class='danger'>You hear a sickening crack.</span>")
jostle_bone()
if(organ_can_feel_pain() && !isbelly(owner.loc))
if(organ_can_feel_pain() && IS_CONSCIOUS(owner) && !isbelly(owner.loc))
INVOKE_ASYNC(owner, /mob/proc/emote, "scream")
playsound(src.loc, "fracture", 10, 1, -2)