Merge pull request #1000 from RusskiSam/resting-mice

Minor - Mouse players can now "rest" properly
This commit is contained in:
Datraen
2016-02-21 11:35:40 -05:00

View File

@@ -54,6 +54,14 @@
else if(prob(5))
audible_emote("snuffles.")
/mob/living/simple_animal/mouse/lay_down() //Simply turns sprite into sleeping and back upon using "Rest".
set name = "Rest"
set category = "IC"
resting = !resting
icon_state = resting ? "mouse_[body_color]_sleep" : "mouse_[body_color]"
src << "<span class='notice'>You are now [resting ? "resting" : "getting up"]</span>"
/mob/living/simple_animal/mouse/New()
..()