Skip to content

Commit

Permalink
become uncraftable
Browse files Browse the repository at this point in the history
  • Loading branch information
BaraBarax committed Jan 2, 2024
1 parent f8f6c0c commit 48a5fd0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
20 changes: 20 additions & 0 deletions code/game/machinery/doors/blast_door.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 0 additions & 6 deletions code/game/objects/structures/shutters_assembly.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 48a5fd0

Please sign in to comment.