From 552b02bd6d5a296be44f11b2729383828fa1dea6 Mon Sep 17 00:00:00 2001 From: "C.L" Date: Sat, 20 Aug 2022 21:44:41 -0400 Subject: [PATCH] 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. --- code/modules/mob/_modifiers/unholy.dm | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/code/modules/mob/_modifiers/unholy.dm b/code/modules/mob/_modifiers/unholy.dm index 64d7a99d38..034c3b455b 100644 --- a/code/modules/mob/_modifiers/unholy.dm +++ b/code/modules/mob/_modifiers/unholy.dm @@ -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) ..() \ No newline at end of file