Simple Animals Resting Refactor

This commit is contained in:
Fox-McCloud
2016-08-25 01:41:01 -04:00
parent ce58dc1366
commit 04e9bb6814
2 changed files with 5 additions and 4 deletions
@@ -853,6 +853,7 @@ Pass a positive integer as an argument to override a bot's default speed.
update_controls()
/mob/living/simple_animal/bot/handle_state_icons()
return
/mob/living/simple_animal/bot/proc/update_icon()
icon_state = "[initial(icon_state)][on]"
@@ -122,15 +122,15 @@
if(1 to 5) healths.icon_state = "health6"
if(0) healths.icon_state = "health7"
/mob/living/simple_animal/Life()
. = ..()
handle_state_icons()
/mob/living/simple_animal/proc/process_ai()
handle_automated_movement()
handle_automated_action()
handle_automated_speech()
/mob/living/simple_animal/lay_down()
..()
handle_state_icons()
/mob/living/simple_animal/proc/handle_state_icons()
if(resting && icon_resting && stat != DEAD)
icon_state = icon_resting