This commit is contained in:
Enric Gabriel
2020-08-16 15:36:51 -03:00
parent 4df3f14cb2
commit da9bea69fe
+2 -2
View File
@@ -170,13 +170,13 @@
/obj/structure/table/attackby(obj/item/I, mob/user, params)
if(!(flags_1 & NODECONSTRUCT_1))
if(istype(I, /obj/item/screwdriver) && deconstruction_ready)
if(istype(I, /obj/item/screwdriver) && deconstruction_ready && !(user.a_intent == INTENT_HELP))
to_chat(user, "<span class='notice'>You start disassembling [src]...</span>")
if(I.use_tool(src, user, 20, volume=50))
deconstruct(TRUE)
return
if(istype(I, /obj/item/wrench) && deconstruction_ready)
if(istype(I, /obj/item/wrench) && deconstruction_ready && !(user.a_intent == INTENT_HELP))
to_chat(user, "<span class='notice'>You start deconstructing [src]...</span>")
if(I.use_tool(src, user, 40, volume=50))
playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)