From 218dc6f6afe832ccc358e67f874f5a43f3194e2b Mon Sep 17 00:00:00 2001 From: Mickyan Date: Sun, 5 Apr 2020 15:36:39 +0200 Subject: [PATCH] crafting --- code/datums/components/crafting/recipes.dm | 6 ++++++ code/game/objects/structures/watercloset.dm | 13 ++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/code/datums/components/crafting/recipes.dm b/code/datums/components/crafting/recipes.dm index ab03bf3e829..bacabb5c5a0 100644 --- a/code/datums/components/crafting/recipes.dm +++ b/code/datums/components/crafting/recipes.dm @@ -482,6 +482,12 @@ result = /obj/item/stack/tile/carpet/black/fifty category = CAT_MISC +/datum/crafting_recipe/curtain + name = "Curtains" + reqs = list(/obj/item/stack/sheet/cloth = 4, /obj/item/stack/rods = 1) + result = /obj/structure/curtain/cloth + category = CAT_MISC + /datum/crafting_recipe/showercurtain name = "Shower Curtains" reqs = list(/obj/item/stack/sheet/cloth = 2, /obj/item/stack/sheet/plastic = 2, /obj/item/stack/rods = 1) diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm index efe3e2e459a..bd9bc21f52c 100644 --- a/code/game/objects/structures/watercloset.dm +++ b/code/game/objects/structures/watercloset.dm @@ -496,9 +496,16 @@ alpha = 255 opaque_closed = TRUE -/obj/structure/curtain/fancy - icon_type = "cur_fancy" - icon_state = "cur_fancy-open" +/obj/structure/curtain/cloth/ color = null alpha = 255 opaque_closed = TRUE + +/obj/structure/curtain/cloth/deconstruct(disassembled = TRUE) + new /obj/item/stack/sheet/cloth (loc, 4) + new /obj/item/stack/rods (loc, 1) + qdel(src) + +/obj/structure/curtain/cloth/fancy + icon_type = "cur_fancy" + icon_state = "cur_fancy-open"