Shadekin convert nutrition into energy

This commit is contained in:
Arokha Sieyes
2018-03-18 19:34:36 -04:00
parent deac68004d
commit 353a5b67c0
@@ -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()
. = ..()