From 01e4304326d52b2709d99b4f2ed550ae0b122b42 Mon Sep 17 00:00:00 2001 From: Mickyan <38563876+Mickyan@users.noreply.github.com> Date: Mon, 30 Apr 2018 07:19:20 +0200 Subject: [PATCH] Makes nutrition level show up on self-inspect (#37509) * Makes nutrition level shows up on self-inspect * Changed to switch statement, edited flavor text --- .../mob/living/carbon/human/human_defense.dm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index c5b9e2d7e3..050a4f6d09 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -718,6 +718,21 @@ to_chat(src, "Your thinking is clouded and distant.") else if(oxyloss > 30) to_chat(src, "You're choking!") + + switch(nutrition) + if(NUTRITION_LEVEL_FULL to INFINITY) + to_chat(src, "You're completely stuffed!") + if(NUTRITION_LEVEL_WELL_FED to NUTRITION_LEVEL_FULL) + to_chat(src, "You're well fed!") + if(NUTRITION_LEVEL_FED to NUTRITION_LEVEL_WELL_FED) + to_chat(src, "You're not hungry.") + if(NUTRITION_LEVEL_HUNGRY to NUTRITION_LEVEL_FED) + to_chat(src, "You could use a bite to eat.") + if(NUTRITION_LEVEL_STARVING to NUTRITION_LEVEL_HUNGRY) + to_chat(src, "You feel quite hungry.") + if(0 to NUTRITION_LEVEL_STARVING) + to_chat(src, "You're starving!") + if(roundstart_traits.len) to_chat(src, "You have these traits: [get_trait_string()].") else