From 7a8bbab694555219f968a4a059244db932b9b397 Mon Sep 17 00:00:00 2001 From: Hubblenaut Date: Sun, 24 May 2015 15:39:43 +0200 Subject: [PATCH] fixup --- code/modules/mob/holder.dm | 1 + code/modules/mob/living/simple_animal/friendly/mouse.dm | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/holder.dm b/code/modules/mob/holder.dm index 396ea93117..6cd1f1d70c 100644 --- a/code/modules/mob/holder.dm +++ b/code/modules/mob/holder.dm @@ -79,6 +79,7 @@ desc = "It's a small rodent." icon_state = "mouse_gray" origin_tech = null + w_class = 1 /obj/item/weapon/holder/mouse/gray icon_state = "mouse_gray" diff --git a/code/modules/mob/living/simple_animal/friendly/mouse.dm b/code/modules/mob/living/simple_animal/friendly/mouse.dm index 76ce0a20b6..e94462a20b 100644 --- a/code/modules/mob/living/simple_animal/friendly/mouse.dm +++ b/code/modules/mob/living/simple_animal/friendly/mouse.dm @@ -63,7 +63,13 @@ if(!body_color) body_color = pick( list("brown","gray","white") ) - holder_type = text2path("/obj/item/weapon/holder/mouse/[body_color]") + switch(body_color) + if("brown") + holder_type = /obj/item/weapon/holder/mouse/brown + if("gray") + holder_type = /obj/item/weapon/holder/mouse/gray + if("white") + holder_type = /obj/item/weapon/holder/mouse/white icon_state = "mouse_[body_color]" icon_living = "mouse_[body_color]" icon_dead = "mouse_[body_color]_dead"