From 5d15f78c40cede6e35dc037605ee83be7337842b Mon Sep 17 00:00:00 2001 From: Verkister Date: Fri, 12 Nov 2021 15:37:40 +0200 Subject: [PATCH] Fixes simplemobs with 0 init nutrition runtiming Fixes runtime spam caused by simplemobs with initial nutrition value of 0. --- code/modules/mob/living/simple_mob/life.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_mob/life.dm b/code/modules/mob/living/simple_mob/life.dm index 82514d3548..710094bb9e 100644 --- a/code/modules/mob/living/simple_mob/life.dm +++ b/code/modules/mob/living/simple_mob/life.dm @@ -54,7 +54,7 @@ healths.icon_state = "health7" //Updates the nutrition while we're here - var/food_per = (nutrition / initial(nutrition)) * 100 + var/food_per = (nutrition / max_nutrition) * 100 switch(food_per) if(90 to INFINITY) clear_alert("nutrition") @@ -164,4 +164,4 @@ spawn(3) //We'll update our icon in a sec update_icon() - return ..(gibbed,deathmessage) \ No newline at end of file + return ..(gibbed,deathmessage)