mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Emptying Lathed Welding Tools And Extinguishers (#30137)
* asfgdsa * cnrbangn rqerqest chaengs...
This commit is contained in:
@@ -38,11 +38,14 @@
|
||||
var/low_fuel_changes_icon = TRUE
|
||||
/// How often does the tool flash the user's eyes?
|
||||
var/progress_flash_divisor = 1 SECONDS
|
||||
/// If FALSE, welding tools wont appear prefilled by default
|
||||
var/prefilled = TRUE
|
||||
|
||||
/obj/item/weldingtool/Initialize(mapload)
|
||||
. = ..()
|
||||
create_reagents(maximum_fuel)
|
||||
reagents.add_reagent("fuel", maximum_fuel)
|
||||
if(prefilled)
|
||||
reagents.add_reagent("fuel", maximum_fuel)
|
||||
update_icon()
|
||||
RegisterSignal(src, COMSIG_BIT_ATTACH, PROC_REF(add_bit))
|
||||
RegisterSignal(src, COMSIG_CLICK_ALT, PROC_REF(remove_bit))
|
||||
@@ -248,6 +251,9 @@
|
||||
/obj/item/weldingtool/get_heat()
|
||||
return tool_enabled * 2500
|
||||
|
||||
/obj/item/weldingtool/empty
|
||||
prefilled = FALSE
|
||||
|
||||
/obj/item/weldingtool/largetank
|
||||
name = "industrial welding tool"
|
||||
desc = "A heavier welding tool with an expanded fuel reservoir. Otherwise identical to a normal welder."
|
||||
@@ -257,6 +263,9 @@
|
||||
materials = list(MAT_METAL = 400, MAT_GLASS = 300)
|
||||
origin_tech = "engineering=2;plasmatech=2"
|
||||
|
||||
/obj/item/weldingtool/largetank/empty
|
||||
prefilled = FALSE
|
||||
|
||||
/obj/item/weldingtool/largetank/cyborg
|
||||
name = "integrated welding tool"
|
||||
desc = "An integrated industrial welding tool used by construction and engineering robots. "
|
||||
@@ -299,6 +308,9 @@
|
||||
materials = list(MAT_METAL = 200, MAT_GLASS = 50)
|
||||
low_fuel_changes_icon = FALSE
|
||||
|
||||
/obj/item/weldingtool/mini/empty
|
||||
prefilled = FALSE
|
||||
|
||||
/obj/item/weldingtool/hugetank
|
||||
name = "upgraded welding tool"
|
||||
desc = "A large industrial welding tool with an even further upgraded fuel reservoir."
|
||||
@@ -309,6 +321,9 @@
|
||||
materials = list(MAT_METAL=70, MAT_GLASS=120)
|
||||
origin_tech = "engineering=3;plasmatech=2"
|
||||
|
||||
/obj/item/weldingtool/hugetank/empty
|
||||
prefilled = FALSE
|
||||
|
||||
/obj/item/weldingtool/experimental
|
||||
name = "experimental welding tool"
|
||||
desc = "A prototype welding tool which uses an experimental fuel breeder to create a near-infinite reserve of fuel. The unusual fuel mixture also means that the flame is less intense on the eyes."
|
||||
|
||||
@@ -26,8 +26,13 @@
|
||||
var/precision = FALSE
|
||||
/// Sets the `cooling_temperature` of the water reagent datum inside of the extinguisher when it is refilled.
|
||||
var/cooling_power = 2
|
||||
/// If FALSE, extinguishers wont appear prefilled by default
|
||||
var/prefilled = TRUE
|
||||
COOLDOWN_DECLARE(last_use)
|
||||
|
||||
/obj/item/extinguisher/empty
|
||||
prefilled = FALSE
|
||||
|
||||
/obj/item/extinguisher/atmospherics
|
||||
name = "atmospheric fire extinguisher"
|
||||
desc = "An extinguisher coated in yellow paint that is pre-filled with firefighting foam."
|
||||
@@ -39,6 +44,9 @@
|
||||
reagent_id = "firefighting_foam"
|
||||
reagent_capacity = 65
|
||||
|
||||
/obj/item/extinguisher/atmospherics/empty
|
||||
prefilled = FALSE
|
||||
|
||||
/obj/item/extinguisher/mini
|
||||
name = "pocket fire extinguisher"
|
||||
desc = "A light and compact fibreglass-framed model fire extinguisher."
|
||||
@@ -54,6 +62,9 @@
|
||||
reagent_capacity = 30
|
||||
dog_fashion = null
|
||||
|
||||
/obj/item/extinguisher/mini/empty
|
||||
prefilled = FALSE
|
||||
|
||||
/obj/item/extinguisher/mini/cyborg
|
||||
name = "integrated fire extinguisher"
|
||||
desc = "A miniature fire extinguisher designed to store firefighting foam."
|
||||
@@ -69,6 +80,9 @@
|
||||
|
||||
/obj/item/extinguisher/Initialize(mapload)
|
||||
. = ..()
|
||||
if(!prefilled)
|
||||
create_reagents(reagent_capacity)
|
||||
reagents.add_reagent(reagent_id, 0)
|
||||
if(!reagents)
|
||||
create_reagents(reagent_capacity)
|
||||
reagents.add_reagent(reagent_id, reagent_capacity)
|
||||
|
||||
Reference in New Issue
Block a user