From 353a5b67c04e94815e6a4c5847e80319dde9c85b Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Sun, 18 Mar 2018 17:23:49 -0400 Subject: [PATCH] Shadekin convert nutrition into energy --- .../mob/living/simple_animal/vore/shadekin/shadekin.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/mob/living/simple_animal/vore/shadekin/shadekin.dm b/code/modules/mob/living/simple_animal/vore/shadekin/shadekin.dm index 73027e0a373..a3a641c0a3a 100644 --- a/code/modules/mob/living/simple_animal/vore/shadekin/shadekin.dm +++ b/code/modules/mob/living/simple_animal/vore/shadekin/shadekin.dm @@ -191,6 +191,11 @@ . = ..() if(ability_flags & AB_PHASE_SHIFTED) density = FALSE + + //Convert spare nutrition into energy at a certain ratio + if(. && nutrition > initial(nutrition) && energy < 100) + nutrition = max(0, nutrition-5) + energy = min(100,energy+1) /mob/living/simple_animal/shadekin/update_icon() . = ..()