Removes irrelevant gluttony regen code segment.

This fires every tick so it's impossible to increase your nutrition in the middle of this firing off.

Additionally, prevents it from trying to heal you if your healing_amount is 0. 0 multiplied by 0.025 is still zero.
This commit is contained in:
C.L
2022-08-20 21:44:41 -04:00
parent c96fbfa519
commit 552b02bd6d
+6 -8
View File
@@ -185,16 +185,14 @@
var/mob/living/carbon/human/H = holder
var/starting_nutrition = H.nutrition
H.adjust_nutrition(-10)
var/healing_amount = starting_nutrition - H.nutrition
if(healing_amount < 0) // If you are eating enough to somehow outpace this, congratulations, you are gluttonous enough to gain a boon.
healing_amount *= -2
var/healing_amount = starting_nutrition - H.nutrition //Anything above 9 nutrition will return 10. Anything below will give 0-9. Nutrition is capped at 0.
if(healing_amount)
H.adjustBruteLoss(-healing_amount * 0.25)
H.adjustBruteLoss(-healing_amount * 0.25)
H.adjustFireLoss(-healing_amount * 0.25)
H.adjustFireLoss(-healing_amount * 0.25)
H.adjustOxyLoss(-healing_amount * 0.25)
H.adjustOxyLoss(-healing_amount * 0.25)
H.adjustToxLoss(-healing_amount * 0.25)
H.adjustToxLoss(-healing_amount * 0.25)
..()