fullness alerts

idk doesn't work but pop off ig
This commit is contained in:
evilew
2024-08-09 15:40:14 +02:00
parent c657f0ee9b
commit ad8851550b
3 changed files with 13 additions and 4 deletions
+9
View File
@@ -215,6 +215,15 @@
desc = "You've somehow managed to fit even more in your stomach, barely allowing for any more room inside."
icon_state = "beegbelly"
/obj/screen/alert/sated
name = "Sated"
desc = "You're perfectly rather sated right now."
icon_state = "sated"
/obj/screen/alert/full
name = "Full"
desc = "You're rather full right now. Eating more food would result in weight gain."
icon_state = "full"
/obj/screen/alert/hungry
name = "Hungry"
@@ -11,10 +11,10 @@
nutrition = max(0, nutrition - (HUNGER_FACTOR / physiology.hunger_mod))
switch(nutrition)
if(NUTRITION_LEVEL_FULL to INFINITY)
throw_alert("nutrition", /obj/screen/alert/fat)
if(NUTRITION_LEVEL_HUNGRY to NUTRITION_LEVEL_FULL)
clear_alert("nutrition")
if(NUTRITION_LEVEL_WELL_FED to INFINITY)
throw_alert("nutrition", /obj/screen/alert/full)
if(NUTRITION_LEVEL_HUNGRY to NUTRITION_LEVEL_FED)
throw_alert("nutrition", /obj/screen/alert/sated)
if(NUTRITION_LEVEL_STARVING to NUTRITION_LEVEL_HUNGRY)
throw_alert("nutrition", /obj/screen/alert/hungry)
if(0 to NUTRITION_LEVEL_STARVING)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 119 KiB