mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 03:55:05 +01:00
Simple Animals Resting Refactor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user