This commit is contained in:
Timothy Teakettle
2022-08-09 11:59:10 +01:00
parent 8ee01d0bc4
commit e71686d8ac
3 changed files with 11 additions and 1 deletions
@@ -103,6 +103,7 @@
is_cold()
if(organ_flags & ORGAN_FROZEN)
return
message_admins("fuck you we're killing [owner]")
applyOrganDamage(maxHealth * decay_factor * (seconds * 0.5))
/obj/item/organ/proc/can_decay()
@@ -155,6 +156,7 @@
if(organ_flags & ORGAN_FAILING || !owner)
return FALSE
if(organ_flags & ORGAN_SYNTHETIC_EMP) //Synthetic organ has been emped, is now failing.
message_admins("emp go brrr")
applyOrganDamage(maxHealth * decay_factor)
return FALSE
if(organ_flags & ORGAN_SYNTHETIC)
@@ -165,6 +167,7 @@
///Damage decrements again by a percent of its maxhealth, up to a total of 4 extra times depending on the owner's satiety
healing_amount -= owner.satiety > 0 ? 4 * (maxHealth * healing_factor) * (owner.satiety / MAX_SATIETY) : 0
if(healing_amount)
message_admins("we um are healing")
applyOrganDamage(healing_amount) //to FERMI_TWEAK
return TRUE