Update bellymodes_datum_vr.dm

Fixes healbelly for synthmorphs draining nutrition forever

Made a little oopsie that local testing didn't catch. It's a minor bug.

Moved nutrition drain to only occur when either limbs are damaged, or there's toxloss to repair.

Revert "Fixes healbelly for synthmorphs draining nutrition forever"

This reverts commit 950c855936890ce186fb33d35a06139ce83e7b54.
This commit is contained in:
Runa Dacino
2022-05-01 06:40:50 +02:00
parent a2af92842b
commit 753ebc8d27

View File

@@ -130,11 +130,12 @@ GLOBAL_LIST_INIT(digest_modes, list())
var/obj/item/organ/external/O = E
if(O.brute_dam > 0 || O.burn_dam > 0) //Making sure healing continues until fixed.
O.heal_damage(0.5, 0.5, 0, 1) // Less effective healing as able to fix broken limbs
B.owner.adjust_nutrition(-5) // More costly for the pred, since metals and stuff
if(L.health < L.maxHealth)
L.adjustToxLoss(-2)
L.adjustOxyLoss(-2)
L.adjustCloneLoss(-1)
B.owner.adjust_nutrition(-5) // More costly for the pred, since metals and stuff
B.owner.adjust_nutrition(-1) // Normal cost per old functionality
if(B.owner.nutrition > 90 && (L.health < L.maxHealth) && !H.isSynthetic())
L.adjustBruteLoss(-2.5)
L.adjustFireLoss(-2.5)