actually mark it (#19680)

This commit is contained in:
Will
2026-08-27 08:42:50 +02:00
committed by GitHub
parent 9f543906ef
commit 3341d2977a
3 changed files with 14 additions and 3 deletions
+2
View File
@@ -69,6 +69,8 @@
#define MODULAR_BODYPART_PROSTHETIC 1 // Can be detached or reattached freely.
#define MODULAR_BODYPART_CYBERNETIC 2 // Can be detached or reattached to compatible parent organs.
#define WOUND_CRITICAL_HEAL_LIMIT 50 // Damage that wounds will not self-heal from, even if treated by basic medical supplies. Chems/surgery ignores this.
//CitRP Port
#define CYBERBEAST_MONITOR_STYLES "blank=cyber_blank;\
default=cyber_default;\
+5
View File
@@ -230,10 +230,15 @@
status += "burning and feels like it's on fire"
else if(org.germ_level > INFECTION_LEVEL_TWO-INFECTION_LEVEL_ONE) //Early warning
status += "warm to the touch"
var/has_critical_wound = FALSE
if(LAZYLEN(org.wounds))
for(var/datum/wound/W in org.wounds)
if(W.internal)
status += "[can_feel_pain(org) ? "hurting and " : ""]showing a slowly growing bruise"
else if(W.can_autoheal() && W.wound_damage() >= WOUND_CRITICAL_HEAL_LIMIT)
has_critical_wound = TRUE
if(has_critical_wound)
status += "insufficiently treated"
if(!org.is_usable() || org.is_dislocated())
status += "dangling uselessly"
if(status.len)
+7 -3
View File
@@ -891,7 +891,7 @@ Note that amputating the affected organ does in fact remove the infection from t
var/heal_amt = 0
// if damage >= 50 AFTER treatment then it's probably too severe to heal within the timeframe of a round.
if (W.can_autoheal() && W.wound_damage() < 50)
if (W.can_autoheal() && W.wound_damage() < WOUND_CRITICAL_HEAL_LIMIT)
heal_amt += 0.5
//we only update wounds once in [wound_update_accuracy] ticks so have to emulate realtime
@@ -1509,13 +1509,17 @@ Note that amputating the affected organ does in fact remove the infection from t
if(W.internal && !open) continue // can't see internal wounds
var/this_wound_desc = W.desc
var/insuffic = "" // Wound is treated, but the wound is so large it won't heal without surgery
if(W.can_autoheal() && W.wound_damage() >= WOUND_CRITICAL_HEAL_LIMIT)
insuffic = "insufficiently "
if(W.damage_type == BURN && W.salved)
this_wound_desc = "salved [this_wound_desc]"
this_wound_desc = "[insuffic]salved [this_wound_desc]"
if(W.bleeding())
this_wound_desc = "bleeding [this_wound_desc]"
else if(W.bandaged)
this_wound_desc = "bandaged [this_wound_desc]"
this_wound_desc = "[W.damage_type != BURN ? insuffic : ""]bandaged [this_wound_desc]"
if(W.germ_level > 600)
this_wound_desc = "badly infected [this_wound_desc]"