From e16bcdd5118542ce1fb8661da12fdd60fbbecb11 Mon Sep 17 00:00:00 2001 From: FlattestGuitar Date: Tue, 16 May 2017 23:35:02 +0200 Subject: [PATCH] removes shoe rags, just use tape! --- code/modules/clothing/shoes/miscellaneous.dm | 30 ++++++-------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/code/modules/clothing/shoes/miscellaneous.dm b/code/modules/clothing/shoes/miscellaneous.dm index e1d0232b84c..7a651881699 100644 --- a/code/modules/clothing/shoes/miscellaneous.dm +++ b/code/modules/clothing/shoes/miscellaneous.dm @@ -175,27 +175,15 @@ item_color = "noble_boot" item_state = "noble_boot" - /obj/item/clothing/shoes/attackby(obj/item/I, mob/user, params) - if(istype(I, /obj/item/shoe_silencer)) - silence_steps = 1 - shoe_sound = null - user.unEquip(I) - qdel(I) - else . = ..() - -/obj/item/shoe_silencer - name = "shoe rags" - desc = "Looks sneaky." - icon_state = "sheet-cloth" - -/datum/crafting_recipe/shoe_rags - name = "Shoe Rags" - result = /obj/item/shoe_silencer - reqs = list(/obj/item/stack/tape_roll = 10) - tools = list(/obj/item/weapon/wirecutters) - time = 40 - category = CAT_MISC + if(istype(I, /obj/item/stack/tape_roll)) + var/obj/item/stack/tape_roll/TR = I + if((!silence_steps || shoe_sound) && TR.use(4)) + silence_steps = 1 + shoe_sound = null + to_chat(user, "You tape the soles of [src] to silence their footsteps.") + else + return ..() /obj/item/clothing/shoes/sandal/white name = "White Sandals" @@ -255,4 +243,4 @@ name = "pink cowgirl boots" desc = "For a Rustlin' tustlin' cowgirl." icon_state = "cowboyboots_pink" - item_color = "cowboyboots_pink" \ No newline at end of file + item_color = "cowboyboots_pink"