Skip to content

Commit

Permalink
ya durachok
Browse files Browse the repository at this point in the history
  • Loading branch information
BaraBarax committed Jan 21, 2024
1 parent 544b996 commit c20f4ed
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions code/game/objects/structures/secure_door_assembly.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,28 @@
if(STATE_UNANCHORED)
if(isWelder(W))
deconstruct_assembly(W, user)
if(isWrench(W))
wrench_floor_bolts(user)
return

if(STATE_EMPTY)
if(isWrench(W))
wrench_floor_bolts(user)
if(isCoil(W))
add_cable(W, user)
return

if(STATE_WIRED)
if(isWirecutter(W))
remove_cable(user)
if(istype(W, /obj/item/device/assembly/signaler))
add_signaler(W, user)
return

if(STATE_SIGNALLER)
if(isCrowbar(W))
remove_signaler(user)
if(isScrewdriver(W))
finish_assembly(user)
return

return ..()

/obj/structure/secure_door/proc/deconstruct_assembly(obj/item/weldingtool/WT, mob/user)
if (WT.remove_fuel(0, user))
Expand Down

0 comments on commit c20f4ed

Please sign in to comment.