Skip to content

Commit

Permalink
fixes simple animal rest state
Browse files Browse the repository at this point in the history
bump
  • Loading branch information
quardbreak committed Apr 26, 2022
1 parent 7814174 commit 9ad5a6d
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions code/modules/mob/living/living.dm
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ default behaviour is:
return
resting = !resting
UpdateLyingBuckledAndVerbStatus()
update_icon()
to_chat(src, SPAN_NOTICE("You are now [resting ? "resting" : "getting up"]."))

//called when the mob receives a bright flash
Expand Down
4 changes: 0 additions & 4 deletions code/modules/mob/living/simple_animal/friendly/mouse.dm
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@
else if(prob(5))
INVOKE_ASYNC(src, .proc/audible_emote, "snuffles.")

/mob/living/simple_animal/mouse/lay_down()
..()
icon_state = resting ? "mouse_[body_color]_sleep" : "mouse_[body_color]"

/mob/living/simple_animal/mouse/Initialize()
verbs += /mob/living/proc/ventcrawl
verbs += /mob/living/proc/hide
Expand Down
6 changes: 3 additions & 3 deletions code/modules/mob/living/simple_animal/simple_animal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@
icon_state = ICON_STATE_WORLD
if(stat == DEAD && (mob_icon_state_flags & MOB_ICON_HAS_DEAD_STATE))
icon_state += "-dead"
else if(!incapacitated() && resting && (mob_icon_state_flags & MOB_ICON_HAS_REST_STATE))
icon_state += "-resting"
else if((lying || incapacitated()) && (mob_icon_state_flags & MOB_ICON_HAS_SLEEP_STATE))
else if(stat == UNCONSCIOUS && (mob_icon_state_flags & MOB_ICON_HAS_SLEEP_STATE))
icon_state += "-sleeping"
else if(resting && (mob_icon_state_flags & MOB_ICON_HAS_REST_STATE))
icon_state += "-resting"

z_flags &= ~ZMM_MANGLE_PLANES
if(stat == CONSCIOUS)
Expand Down
Binary file modified icons/mob/simple_animal/mouse_brown.dmi
Binary file not shown.
Binary file modified icons/mob/simple_animal/mouse_gray.dmi
Binary file not shown.
Binary file modified icons/mob/simple_animal/mouse_white.dmi
Binary file not shown.

0 comments on commit 9ad5a6d

Please sign in to comment.