mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Fixes grilles being unanchorable (#68919)
* screwdrivers can now unanchor grilles again.
This commit is contained in:
@@ -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."))
|
||||
|
||||
Reference in New Issue
Block a user