From 48a5fd0d39939e27e245e9f73f9b44978342d844 Mon Sep 17 00:00:00 2001 From: BaraBara Date: Tue, 2 Jan 2024 14:17:45 +0300 Subject: [PATCH] become uncraftable --- code/game/machinery/doors/blast_door.dm | 20 +++++++++++++++++++ .../objects/structures/shutters_assembly.dm | 6 ------ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/code/game/machinery/doors/blast_door.dm b/code/game/machinery/doors/blast_door.dm index 886c013c667..9f4ab90062d 100644 --- a/code/game/machinery/doors/blast_door.dm +++ b/code/game/machinery/doors/blast_door.dm @@ -247,9 +247,29 @@ close_sound = 'sound/machines/shutters_close.ogg' keep_items_on_close = TRUE // These are placed over tables often, so let's keep items be. + /obj/machinery/door/blast/shutters/open begins_closed = FALSE +/obj/machinery/door/blast/shutters/attackby(obj/item/C, mob/user) + . = ..() + if(!density) + if(default_deconstruction_screwdriver(user, C)) + return + if(default_deconstruction_crowbar(user, C)) + return + +/obj/machinery/door/blast/shutters/dismantle() + playsound(loc, 'sound/items/Crowbar.ogg', 50, 1) + var/obj/structure/shutters_assembly/M = new /obj/structure/shutters_assembly(get_turf(src)) + new /obj/item/device/assembly/signaler(get_turf(src)) + M.set_dir(dir) + M.state = 2 + M.anchored = TRUE + M.update_icon() + qdel(src) + return + //SUBTYPE: Polar /obj/machinery/door/blast/regular/polar icon_state_open = "polar_pdoor0" diff --git a/code/game/objects/structures/shutters_assembly.dm b/code/game/objects/structures/shutters_assembly.dm index 2aed92b92ae..53c22577607 100644 --- a/code/game/objects/structures/shutters_assembly.dm +++ b/code/game/objects/structures/shutters_assembly.dm @@ -107,12 +107,6 @@ update_icon() /obj/structure/shutters_assembly/proc/remove_signaler(mob/user) - //This should never happen, but just in case I guess - if (!signaler) - to_chat(user, SPAN_NOTICE("There was nothing to remove.")) - state = STATE_WIRED - return - user.visible_message("\The [user] starts removing the signaller from \the [src].", "You start removing the signaller from \the [src].") if(do_after(user, 40, src))