mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-21 12:16:44 +01:00
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:
@@ -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)
|
||||
|
||||
..()
|
||||
Reference in New Issue
Block a user