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

This commit is contained in:
skoglol
2021-05-27 13:34:20 +02:00
committed by GitHub
parent 8112be6939
commit 28ea1f720b
2 changed files with 4 additions and 1 deletions
@@ -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