From 94f16f1c9e2cbf4b4655d58702ef07f57d54837d Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Sat, 6 Aug 2022 12:40:54 -0400 Subject: [PATCH] Fixes grilles being unanchorable (#68919) * screwdrivers can now unanchor grilles again. --- code/game/objects/structures/grille.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/game/objects/structures/grille.dm b/code/game/objects/structures/grille.dm index abc8c89277d..00d1081cb97 100644 --- a/code/game/objects/structures/grille.dm +++ b/code/game/objects/structures/grille.dm @@ -180,12 +180,13 @@ return TOOL_ACT_TOOLTYPE_SUCCESS /obj/structure/grille/screwdriver_act(mob/living/user, obj/item/tool) - if(!isturf(loc) || !anchored) + if(!isturf(loc)) return FALSE add_fingerprint(user) if(shock(user, 90)) return FALSE - tool.play_tool_sound(src, 100) + if(!tool.use_tool(src, user, 0, volume=100)) + return FALSE set_anchored(!anchored) user.visible_message(span_notice("[user] [anchored ? "fastens" : "unfastens"] [src]."), \ span_notice("You [anchored ? "fasten [src] to" : "unfasten [src] from"] the floor."))