[MIRROR] Stops giving you organ damage messages if you arent conscious (#5991)

* Stops giving you organ damage messages if you arent conscious (#59311)

* Stops giving you organ damage messages if you arent conscious

Co-authored-by: skoglol <33292112+kriskog@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-05-27 23:34:45 +02:00
committed by GitHub
parent 17c5994835
commit 0f4945bc6e
2 changed files with 4 additions and 1 deletions
@@ -217,6 +217,9 @@
return
if(DT_PROB(65, delta_time))
return
if(affected_carbon.stat >= SOFT_CRIT)
return
var/obj/item/organ/organ = pick(affected_carbon.internal_organs)
if(organ.low_threshold)
to_chat(affected_carbon, organ.low_threshold_passed)
@@ -172,7 +172,7 @@
damage = clamp(damage + damage_amount, 0, maximum)
var/mess = check_damage_thresholds(owner)
prev_damage = damage
if(mess && owner)
if(mess && owner.stat <= SOFT_CRIT)
to_chat(owner, mess)
///SETS an organ's damage to the amount "damage_amount", and in doing so clears or sets the failing flag, good for when you have an effect that should fix an organ if broken