From 3cd1374e17065af40603cd6b33a57ff381963e69 Mon Sep 17 00:00:00 2001 From: Cyantime Date: Thu, 27 Jul 2017 02:10:24 -0400 Subject: [PATCH] Fix mouse behaviour --- .../mob/living/simple_animal/animals/mouse.dm | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/code/modules/mob/living/simple_animal/animals/mouse.dm b/code/modules/mob/living/simple_animal/animals/mouse.dm index cb06aecb7e..03042002e9 100644 --- a/code/modules/mob/living/simple_animal/animals/mouse.dm +++ b/code/modules/mob/living/simple_animal/animals/mouse.dm @@ -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.")