mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
Adds new helper: use_tool, shakes things up in tool code (#35095)
* small changes * Adds a use_tool helper and changes some tools to use it * Ports most tool operations to use_tool * Converts more tool operations to use_tool and tool_act * Changes some things to default_unfasten_wrench * Improves tool_behavior support in mech construction * Code review memes * Fixes all instant use_tool calls failing * Code improvements * merge fixes
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
if(istype(I, /obj/item/wrench))
|
||||
to_chat(user, "<span class='notice'>You start disassembling [src]...</span>")
|
||||
playsound(src.loc, I.usesound, 50, 1)
|
||||
if(do_after(user, 30*I.toolspeed, target = src))
|
||||
if(I.use_tool(src, user, 30))
|
||||
playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
|
||||
deconstruct(TRUE)
|
||||
else if(istype(I, /obj/item/stack/sheet/plasteel))
|
||||
|
||||
Reference in New Issue
Block a user