You now need to cut the cables before unscrewing the plating (#18696)

* You now need to cut the cables before unscrewing the plating

* thethethtethe

* review fix
This commit is contained in:
alex-gh
2022-08-03 19:48:54 -05:00
committed by GitHub
parent 2daa76e6fc
commit b708dd5086
+4 -2
View File
@@ -99,11 +99,13 @@
return TRUE
/turf/simulated/floor/plating/screwdriver_act(mob/user, obj/item/I)
. = TRUE
if(!I.tool_use_check(user, 0))
return
to_chat(user, "<span class='notice'>You start [unfastened ? "fastening" : "unfastening"] [src].</span>")
. = TRUE
if(locate(/obj/structure/cable) in src)
to_chat(user, "<span class='notice'>There is a cable still attached to [src]. Remove it first!</span>")
return
to_chat(user, "<span class='notice'>You start [unfastened ? "fastening" : "unfastening"] [src].</span>")
if(!I.use_tool(src, user, 20, volume = I.tool_volume))
return
to_chat(user, "<span class='notice'>You [unfastened ? "fasten" : "unfasten"] [src].</span>")