Merge pull request #12986 from Citinited/bugfixes-two

Some more bugfixes from the tool refactor
This commit is contained in:
Fox McCloud
2020-02-24 19:45:03 -05:00
committed by GitHub
7 changed files with 47 additions and 39 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ a {
return FALSE
if(I.tool_behaviour != TOOL_WRENCH)
return FALSE
if(!I.use_tool(src, user, 0, volume = I.tool_volume))
if(!I.tool_use_check(user, 0))
return FALSE
if(!(flags & NODECONSTRUCT))
to_chat(user, "<span class='notice'>Now [anchored ? "un" : ""]securing [name].</span>")
+1 -1
View File
@@ -241,7 +241,7 @@
return
TOOL_ATTEMPT_DISMANTLE_MESSAGE
if(I.use_tool(src, user, 20, volume = I.tool_volume) && deconstruction_ready)
deconstruct(TRUE, 1)
deconstruct(TRUE)
TOOL_DISMANTLE_SUCCESS_MESSAGE
/obj/structure/table/wrench_act(mob/user, obj/item/I)