Merge pull request #14945 from timothyteakettle/plant

fixes photosynthesis stopping nutrition going past well fed from non-photosynthesis means
This commit is contained in:
Lin
2021-07-17 09:50:20 -07:00
committed by GitHub

View File

@@ -59,7 +59,7 @@
var/mob/living/L = AM
if(L.stat == DEAD)
continue
if(light_nutrition_gain)
if(light_nutrition_gain && L.nutrition < NUTRITION_LEVEL_WELL_FED)
L.adjust_nutrition(light_amount * light_nutrition_gain * attached_atoms[AM], NUTRITION_LEVEL_WELL_FED)
if(light_amount > bonus_lum || light_amount < malus_lum)
var/mult = ((light_amount > bonus_lum) ? 1 : -1) * attached_atoms[AM]