Ports use_tool proc from /tg/ (#13411)

This commit is contained in:
Wowzewow (Wezzy)
2022-05-23 14:39:00 +02:00
committed by GitHub
parent 8b8df9e309
commit eafa547b5c
140 changed files with 519 additions and 466 deletions
+2 -3
View File
@@ -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