Merge pull request #8345 from Verkister/patch-81

Fixes simplemobs with 0 init nutrition runtiming
This commit is contained in:
Atermonera
2021-11-20 16:30:30 -08:00
committed by GitHub

View File

@@ -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)
return ..(gibbed,deathmessage)