mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 12:29:46 +01:00
Ports use_tool proc from /tg/ (#13411)
This commit is contained in:
@@ -24,13 +24,12 @@
|
||||
if (!WT.welding)
|
||||
to_chat(user, SPAN_WARNING("\The [WT] must be turned on!"))
|
||||
return
|
||||
else if (WT.remove_fuel(0,user))
|
||||
else if (WT.use(0,user))
|
||||
user.visible_message("<b>[user]</b> begins slicing through the skin of \the [src].", SPAN_NOTICE("You begin slicing through the skin of \the [src]."))
|
||||
if(!do_after(user, 20/W.toolspeed, act_target = src))
|
||||
if(!W.use_tool(src, user, 20, volume = 50))
|
||||
return
|
||||
if(QDELETED(src) || !WT.isOn())
|
||||
return
|
||||
playsound(loc, 'sound/items/welder_pry.ogg', 50, 1)
|
||||
user.visible_message("<b>[user]</b> slices through the skin of \the [src].", SPAN_NOTICE("You slice through \the [src]."))
|
||||
qdel(src)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user