Merge pull request #3653 from Cyantime/mousefix

Fixes mouse idle behaviour
This commit is contained in:
Anewbe
2017-07-27 10:15:23 -05:00
committed by GitHub
@@ -49,18 +49,15 @@
for(var/mob/M in view())
M << 'sound/effects/mousesqueek.ogg'
if(!ckey && stat == CONSCIOUS && prob(0.5))
stat = UNCONSCIOUS
icon_state = "mouse_[body_color]_sleep"
wander = 0
if(!resting && prob(0.5))
lay_down()
speak_chance = 0
//snuffles
else if(stat == UNCONSCIOUS)
if(ckey || prob(1))
stat = CONSCIOUS
icon_state = "mouse_[body_color]"
wander = 1
else if(resting)
if(prob(1))
lay_down()
speak_chance = initial(speak_chance)
else if(prob(5))
audible_emote("snuffles.")