From b708dd508618f8e9b40802289c45fcfddc359ce3 Mon Sep 17 00:00:00 2001 From: alex-gh Date: Thu, 4 Aug 2022 02:48:54 +0200 Subject: [PATCH] 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 --- code/game/turfs/simulated/floor/plating.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/game/turfs/simulated/floor/plating.dm b/code/game/turfs/simulated/floor/plating.dm index c486a3b589f..febdbdc4fcc 100644 --- a/code/game/turfs/simulated/floor/plating.dm +++ b/code/game/turfs/simulated/floor/plating.dm @@ -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, "You start [unfastened ? "fastening" : "unfastening"] [src].") . = TRUE + if(locate(/obj/structure/cable) in src) + to_chat(user, "There is a cable still attached to [src]. Remove it first!") + return + to_chat(user, "You start [unfastened ? "fastening" : "unfastening"] [src].") if(!I.use_tool(src, user, 20, volume = I.tool_volume)) return to_chat(user, "You [unfastened ? "fasten" : "unfasten"] [src].")