diff --git a/code/game/machinery/autolathe_datums.dm b/code/game/machinery/autolathe_datums.dm index 9c8ee271845d..fcff34a86f8e 100644 --- a/code/game/machinery/autolathe_datums.dm +++ b/code/game/machinery/autolathe_datums.dm @@ -49,7 +49,7 @@ /datum/autolathe/recipe/weldertool name = "blowtorch" - path = /obj/item/tool/weldingtool + path = /obj/item/tool/weldingtool/empty category = AUTOLATHE_CATEGORY_TOOLS /datum/autolathe/recipe/screwdriver diff --git a/code/game/objects/items/tools/maintenance_tools.dm b/code/game/objects/items/tools/maintenance_tools.dm index f45953040a07..d5c7e371025d 100644 --- a/code/game/objects/items/tools/maintenance_tools.dm +++ b/code/game/objects/items/tools/maintenance_tools.dm @@ -159,6 +159,7 @@ */ /obj/item/tool/weldingtool name = "blowtorch" + desc = "A blowtorch for welding and cutting metals." icon = 'icons/obj/items/items.dmi' icon_state = "welder" pickup_sound = 'sound/handling/weldingtool_pickup.ogg' @@ -188,6 +189,8 @@ var/welding = 0 /// The max amount of fuel the welder can hold var/max_fuel = 40 + /// Adding this line of code to determine whether a welder should have fuel when created or not. + var/starting_fuel = TRUE /// Used to slowly deplete the fuel when the tool is left on. var/weld_tick = 0 var/has_welding_screen = FALSE @@ -196,7 +199,9 @@ /obj/item/tool/weldingtool/Initialize() . = ..() create_reagents(max_fuel) - reagents.add_reagent("fuel", max_fuel) + if (starting_fuel) + reagents.add_reagent("fuel", max_fuel) + base_icon_state = initial(icon_state) return @@ -417,6 +422,9 @@ to_chat(H, SPAN_WARNING("Your eyes are really starting to hurt. This can't be good for you!")) return FALSE +/obj/item/tool/weldingtool/empty + starting_fuel = FALSE + /obj/item/tool/weldingtool/largetank name = "industrial blowtorch" max_fuel = 60