mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user