Skip to content

Commit

Permalink
pupupu
Browse files Browse the repository at this point in the history
  • Loading branch information
BaraBarax committed Jan 1, 2024
1 parent 54d478e commit a9f8413
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion code/game/machinery/doors/blast_door.dm
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@
to_chat(usr, "<span class='warning'>You don't have enough sheets to repair this! You need at least [amt] sheets.</span>")

/obj/machinery/door/blast/receive_signal(datum/signal/signal)
. = ..()
if(signal?.encryption != code)
return FALSE

Expand Down
10 changes: 7 additions & 3 deletions code/game/objects/structures/shutters_assembly.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@
icon_state = "shutter_st0"
anchored = FALSE
density = TRUE
w_class = ITEM_SIZE_NO_CONTAINER
var/state = STATE_EMPTY
var/obj/item/device/assembly/signaler/signaler = null

/obj/structure/shutters_assembly/Destroy()
QDEL_NULL(signaler)
return ..()

/obj/structure/shutters_assembly/on_update_icon()
switch(state)
if(STATE_EMPTY)
Expand Down Expand Up @@ -51,14 +54,14 @@
playsound(loc, 'sound/items/Welder2.ogg', 50, 1)
user.visible_message("[user] dissassembles the shutters assembly.", "You start to dissassemble the shutters assembly.")
if(do_after(user, 40, src))
if(!src || !WT.isOn())
if(!WT.isOn())
return

to_chat(user, SPAN_NOTICE("You dissasembled the shutters assembly!"))
new /obj/item/stack/material/steel(loc, 10)
qdel(src)
else
to_chat(user, "<span class='notice'>You need more welding fuel.</span>")
to_chat(user, SPAN_NOTICE("You need more welding fuel."))
return

/obj/structure/shutters_assembly/proc/wrench_assembly(mob/user)
Expand Down Expand Up @@ -99,6 +102,7 @@
if(do_after(user, 40, src))
if(!user.drop(W, src))
return

to_chat(user, SPAN_NOTICE("You installed the shutters signaller!"))
signaler = W
state = STATE_SIGNALLER
Expand Down

0 comments on commit a9f8413

Please sign in to comment.