mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Hopefully fixes some tool-conversion things
This commit is contained in:
@@ -227,7 +227,7 @@
|
||||
else
|
||||
user << "<span class='notice'>You need at least three rods to complete this task.</span>"
|
||||
return
|
||||
else if(W.is_welder())
|
||||
else if(istype(W, /obj/item/weapon/weldingtool))
|
||||
if(buildstate == 1)
|
||||
var/obj/item/weapon/weldingtool/T = W
|
||||
if(T.remove_fuel(0,user))
|
||||
@@ -237,7 +237,7 @@
|
||||
buildstate++
|
||||
update_icon()
|
||||
return
|
||||
else if(W.is_cable_coil())
|
||||
else if(istype(W, /obj/item/stack/cable_coil))
|
||||
var/obj/item/stack/cable_coil/C = W
|
||||
if(buildstate == 2)
|
||||
if(C.use(5))
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
increment_construction_stage()
|
||||
return
|
||||
|
||||
if(thing.is_welder() && construction_stage == 4)
|
||||
if(istype(thing, /obj/item/weapon/weldingtool) && construction_stage == 4)
|
||||
var/obj/item/weapon/weldingtool/welder = thing
|
||||
|
||||
if(!welder.isOn())
|
||||
@@ -49,7 +49,7 @@
|
||||
increment_construction_stage()
|
||||
return
|
||||
|
||||
if(thing.is_cable_coil() && construction_stage == 5)
|
||||
if(istype(thing, /obj/item/stack/cable_coil) && construction_stage == 5)
|
||||
var/obj/item/stack/cable_coil/cable = thing
|
||||
if(cable.get_amount() < 5)
|
||||
to_chat(user, "<span class='warning'>You need at least 5 lengths of cable for this task.</span>")
|
||||
|
||||
Reference in New Issue
Block a user