Fix regen mesh (#89223)

## About The Pull Request

Fixes #89007

The conditionals were messed up - Burn wound sanitation / flesh healing
heals the wound over time so it's not like these would reasonably drop
to zero while meshing them.

## Changelog

🆑 Melbert
fix: Regen meshes stop when they've done all they can again
/🆑
This commit is contained in:
MrMelbert
2025-01-26 19:04:09 +00:00
committed by GitHub
parent b8c664c657
commit 9deea854ec
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -225,9 +225,9 @@
/// Checks if the wound is in a state that ointment or flesh will help
/datum/wound/burn/flesh/proc/can_be_ointmented_or_meshed()
if(infestation > 0 || sanitization < infestation)
if(infestation > 0 && sanitization < infestation)
return TRUE
if(flesh_damage > 0 || flesh_healing <= flesh_damage)
if(flesh_damage > 0 && flesh_healing <= flesh_damage)
return TRUE
return FALSE
+1 -1
View File
@@ -270,7 +270,7 @@
if(!brute_to_heal && stop_bleeding) // no brute, no bleeding
carbon_patient.balloon_alert(user, "[affecting.plaintext_zone] is not bleeding or bruised!")
else if(!burn_to_heal && (flesh_regeneration || sanitization) && any_burn_wound) // no burns, existing burn wounds are treated
carbon_patient.balloon_alert(user, "[affecting.plaintext_zone] has been fully treated!")
carbon_patient.balloon_alert(user, "[affecting.plaintext_zone] is fully treated, give it time!")
else if(!affecting.brute_dam && !affecting.burn_dam) // not hurt at all
carbon_patient.balloon_alert(user, "[affecting.plaintext_zone] is not hurt!")
else // probably hurt in some way but we are not the right item for this