mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
Ports use_tool proc from /tg/ (#13411)
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
/turf/simulated/floor/exoplanet/attackby(obj/item/C, mob/user)
|
||||
if(diggable && istype(C,/obj/item/shovel))
|
||||
visible_message("<span class='notice'>\The [user] starts digging \the [src]</span>")
|
||||
if(do_after(user, 50))
|
||||
if(C.use_tool(src, user, 50, volume = 50))
|
||||
to_chat(user,"<span class='notice'>You dig a deep pit.</span>")
|
||||
new /obj/structure/pit(src)
|
||||
diggable = 0
|
||||
|
||||
@@ -135,10 +135,10 @@
|
||||
if(!WT.isOn())
|
||||
return
|
||||
|
||||
if(WT.remove_fuel(0,user))
|
||||
if(WT.use(0,user))
|
||||
to_chat(user, "<span class='notice'>You start repairing the damage to [src].</span>")
|
||||
playsound(src, 'sound/items/welder.ogg', 100, 1)
|
||||
if(do_after(user, max(5, damage / 5), src) && WT && WT.isOn())
|
||||
if(WT.use_tool(src, user, max(5, damage / 5),, volume = 50) && WT && WT.isOn())
|
||||
to_chat(user, "<span class='notice'>You finish repairing the damage to [src].</span>")
|
||||
take_damage(-damage)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user