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:
@@ -268,8 +268,7 @@
|
||||
to_chat(user, SPAN_WARNING("You have to remove all the components from \the [src] before disassembling it."))
|
||||
return TRUE
|
||||
to_chat(user, SPAN_NOTICE("You begin to disassemble \the [src]."))
|
||||
playsound(get_turf(src), W.usesound, 100, TRUE)
|
||||
if (do_after(user, 20/W.toolspeed))
|
||||
if(W.use_tool(src, user, 20, volume = 50))
|
||||
new /obj/item/stack/material/steel(get_turf(src), steel_sheet_cost)
|
||||
user.visible_message(SPAN_NOTICE("\The [user] disassembles \the [src]."), SPAN_NOTICE("You disassemble \the [src]."), SPAN_NOTICE("You hear a ratcheting noise."))
|
||||
qdel(src)
|
||||
@@ -286,7 +285,7 @@
|
||||
|
||||
to_chat(user, SPAN_NOTICE("You begin repairing the damage to \the [src]..."))
|
||||
playsound(get_turf(src), 'sound/items/welder.ogg', 100, 1)
|
||||
if(WT.remove_fuel(round(damage / 75)) && do_after(user, damage / 10))
|
||||
if(WT.use(round(damage / 75)) && do_after(user, damage / 10))
|
||||
damage = 0
|
||||
to_chat(user, SPAN_NOTICE("You fully repair \the [src]."))
|
||||
update_icon()
|
||||
|
||||
@@ -265,14 +265,13 @@
|
||||
/obj/machinery/lapvend/attackby(obj/item/W, mob/user)
|
||||
if(W.iswrench())
|
||||
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
|
||||
playsound(src.loc, W.usesound, 100, 1)
|
||||
if(anchored)
|
||||
user.visible_message("<b>[user]</b> begins unsecuring \the [src] from the floor.", \
|
||||
SPAN_NOTICE("You start unsecuring \the [src] from the floor."))
|
||||
else
|
||||
user.visible_message("<b>[user]</b> begins securing \the [src] to the floor.", \
|
||||
SPAN_NOTICE("You start securing \the [src] to the floor."))
|
||||
if(do_after(user, 20/W.toolspeed))
|
||||
if(W.use_tool(src, user, 20, volume = 50))
|
||||
if(!src)
|
||||
return
|
||||
to_chat(user, SPAN_NOTICE("You [anchored ? "un" : ""]secured \the [src]!"))
|
||||
@@ -359,4 +358,4 @@
|
||||
|
||||
else // just incase
|
||||
ping("You cannot pay with this!")
|
||||
return 0
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user