mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +01:00
Ports use_tool proc from /tg/ (#13411)
This commit is contained in:
@@ -922,7 +922,7 @@
|
||||
|
||||
if(pin && I.isscrewdriver())
|
||||
visible_message(SPAN_WARNING("\The [user] begins to try and pry out \the [src]'s firing pin!"))
|
||||
if(do_after(user, 45 SECONDS))
|
||||
if(I.use_tool(src, user, 45, volume = 50))
|
||||
if(pin.durable || prob(50))
|
||||
visible_message(SPAN_NOTICE("\The [user] pops \the [pin] out of \the [src]!"))
|
||||
pin.forceMove(get_turf(src))
|
||||
|
||||
@@ -242,7 +242,7 @@
|
||||
else if(W.iswelder())
|
||||
if(buildstate == 1)
|
||||
var/obj/item/weldingtool/T = W
|
||||
if(T.remove_fuel(0,user))
|
||||
if(T.use(0,user))
|
||||
if(!src || !T.isOn()) return
|
||||
playsound(src.loc, 'sound/items/welder_pry.ogg', 100, 1)
|
||||
to_chat(user, SPAN_NOTICE("You weld the rods into place."))
|
||||
|
||||
@@ -188,7 +188,7 @@
|
||||
else if(W.iswelder())
|
||||
if(buildstate == 1)
|
||||
var/obj/item/weldingtool/T = W
|
||||
if(T.remove_fuel(0,user))
|
||||
if(T.use(0,user))
|
||||
if(!src || !T.isOn()) return
|
||||
playsound(src.loc, 'sound/items/welder_pry.ogg', 100, 1)
|
||||
to_chat(user, "<span class='notice'>You weld the pipe into place.</span>")
|
||||
@@ -196,7 +196,7 @@
|
||||
update_icon()
|
||||
if(buildstate == 3)
|
||||
var/obj/item/weldingtool/T = W
|
||||
if(T.remove_fuel(0,user))
|
||||
if(T.use(0,user))
|
||||
if(!src || !T.isOn()) return
|
||||
playsound(src.loc, 'sound/items/welder_pry.ogg', 100, 1)
|
||||
to_chat(user, "<span class='notice'>You weld the metal chassis together.</span>")
|
||||
@@ -204,7 +204,7 @@
|
||||
update_icon()
|
||||
if(buildstate == 5)
|
||||
var/obj/item/weldingtool/T = W
|
||||
if(T.remove_fuel(0,user))
|
||||
if(T.use(0,user))
|
||||
if(!src || !T.isOn()) return
|
||||
playsound(src.loc, 'sound/items/welder_pry.ogg', 100, 1)
|
||||
to_chat(user, "<span class='notice'>You weld the valve into place.</span>")
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
Fire(user, user) //will this work? //it will. we call it twice, for twice the FUN
|
||||
user.visible_message("<span class='danger'>The shotgun goes off!</span>", "<span class='danger'>The shotgun goes off in your face!</span>")
|
||||
return
|
||||
if(do_after(user, 30))
|
||||
if(A.use_tool(src, user, 30, volume = 50))
|
||||
icon_state = "ishotgunsawn"
|
||||
item_state = "ishotgunsawn"
|
||||
w_class = ITEMSIZE_NORMAL
|
||||
@@ -198,7 +198,7 @@
|
||||
else if(W.iswelder())
|
||||
if(buildstate == 3)
|
||||
var/obj/item/weldingtool/T = W
|
||||
if(T.remove_fuel(0,user))
|
||||
if(T.use(0,user))
|
||||
if(!src || !T.isOn()) return
|
||||
playsound(src.loc, 'sound/items/welder_pry.ogg', 100, 1)
|
||||
to_chat(user, "<span class='notice'>You shorten the barrel with the welding tool.</span>")
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
return
|
||||
|
||||
sawing_in_progress = TRUE
|
||||
if(do_after(user, 30, act_target = src)) //SHIT IS STEALTHY EYYYYY
|
||||
if(A.use_tool(src, user, 30, volume = 50)) //SHIT IS STEALTHY EYYYYY
|
||||
sawing_in_progress = FALSE
|
||||
saw_off(user, A)
|
||||
else
|
||||
@@ -240,4 +240,4 @@
|
||||
if(folded)
|
||||
toggle_folded(user)
|
||||
return FALSE
|
||||
return ..()
|
||||
return ..()
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
return
|
||||
if(malus == base_malus)
|
||||
return 0
|
||||
if(W.remove_fuel(5))
|
||||
if(W.use(5))
|
||||
malus = max(malus - 5, base_malus)
|
||||
return 1
|
||||
return 0
|
||||
@@ -267,4 +267,4 @@
|
||||
. += "Shots Modifier: [initial(l_component.fire_delay)]<br>"
|
||||
. += "Burst Modifier: [initial(l_component.burst)]<br>"
|
||||
. += "Accuracy Modifier: [initial(l_component.accuracy)]<br>"
|
||||
. += "Repair Tool: [l_repair_name]<br>"
|
||||
. += "Repair Tool: [l_repair_name]<br>"
|
||||
|
||||
Reference in New Issue
Block a user