mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Initialize fixing (#10335)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2e725a0727
commit
ce2446922e
@@ -24,7 +24,7 @@
|
||||
|
||||
density = TRUE
|
||||
|
||||
/obj/machinery/atmospherics/binary/circulator/Initialize()
|
||||
/obj/machinery/atmospherics/binary/circulator/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
desc = initial(desc) + " Its outlet port is to the [dir2text(dir)]."
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
//2: Do not pass input_pressure_min
|
||||
//4: Do not pass output_pressure_max
|
||||
|
||||
/obj/machinery/atmospherics/binary/dp_vent_pump/Initialize()
|
||||
/obj/machinery/atmospherics/binary/dp_vent_pump/Initialize(mapload)
|
||||
. = ..()
|
||||
if(frequency)
|
||||
set_frequency(frequency)
|
||||
@@ -58,7 +58,7 @@
|
||||
/obj/machinery/atmospherics/binary/dp_vent_pump/high_volume
|
||||
name = "Large Dual Port Air Vent"
|
||||
|
||||
/obj/machinery/atmospherics/binary/dp_vent_pump/high_volume/Initialize()
|
||||
/obj/machinery/atmospherics/binary/dp_vent_pump/high_volume/Initialize(mapload)
|
||||
. = ..()
|
||||
air1.volume = ATMOS_DEFAULT_VOLUME_PUMP + 800
|
||||
air2.volume = ATMOS_DEFAULT_VOLUME_PUMP + 800
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
var/id = null
|
||||
var/datum/radio_frequency/radio_connection
|
||||
|
||||
/obj/machinery/atmospherics/binary/passive_gate/Initialize()
|
||||
/obj/machinery/atmospherics/binary/passive_gate/Initialize(mapload)
|
||||
. = ..()
|
||||
air1.volume = ATMOS_DEFAULT_VOLUME_PUMP * 2.5
|
||||
air2.volume = ATMOS_DEFAULT_VOLUME_PUMP * 2.5
|
||||
|
||||
@@ -235,7 +235,7 @@
|
||||
var/kin_to_el_ratio = 0.1 //How much kinetic energy will be taken from turbine and converted into electricity
|
||||
var/obj/machinery/atmospherics/pipeturbine/turbine
|
||||
|
||||
/obj/machinery/power/turbinemotor/Initialize()
|
||||
/obj/machinery/power/turbinemotor/Initialize(mapload)
|
||||
. = ..()
|
||||
updateConnection()
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ Thus, the two variables affect pump operation are set in New():
|
||||
var/id = null
|
||||
var/datum/radio_frequency/radio_connection
|
||||
|
||||
/obj/machinery/atmospherics/binary/pump/Initialize()
|
||||
/obj/machinery/atmospherics/binary/pump/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
air1.volume = ATMOS_DEFAULT_VOLUME_PUMP
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
var/list/filtering_outputs = list() //maps gasids to gas_mixtures
|
||||
|
||||
/obj/machinery/atmospherics/omni/atmos_filter/Initialize()
|
||||
/obj/machinery/atmospherics/omni/atmos_filter/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
rebuild_filtering_list()
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
var/list/mixing_inputs = list()
|
||||
|
||||
/obj/machinery/atmospherics/omni/mixer/Initialize()
|
||||
/obj/machinery/atmospherics/omni/mixer/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
if(mapper_set())
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
var/list/ports = new()
|
||||
|
||||
/obj/machinery/atmospherics/omni/Initialize()
|
||||
/obj/machinery/atmospherics/omni/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
icon_state = "base"
|
||||
|
||||
@@ -18,7 +18,7 @@ GLOBAL_LIST_EMPTY(shutoff_valves)
|
||||
. = ..()
|
||||
. += "The automatic shutoff circuit is [close_on_leaks ? "enabled" : "disabled"]."
|
||||
|
||||
/obj/machinery/atmospherics/valve/shutoff/Initialize()
|
||||
/obj/machinery/atmospherics/valve/shutoff/Initialize(mapload)
|
||||
. = ..()
|
||||
open()
|
||||
GLOB.shutoff_valves += src
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
if(frequency)
|
||||
radio_connection = radio_controller.add_object(src, frequency, RADIO_ATMOSIA)
|
||||
|
||||
/obj/machinery/atmospherics/trinary/atmos_filter/Initialize()
|
||||
/obj/machinery/atmospherics/trinary/atmos_filter/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
switch(filter_type)
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
icon_state += "off"
|
||||
update_use_power(USE_POWER_OFF)
|
||||
|
||||
/obj/machinery/atmospherics/trinary/mixer/Initialize()
|
||||
/obj/machinery/atmospherics/trinary/mixer/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
air1.volume = ATMOS_DEFAULT_VOLUME_MIXER
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
var/datum/pipe_network/network2
|
||||
var/datum/pipe_network/network3
|
||||
|
||||
/obj/machinery/atmospherics/trinary/Initialize()
|
||||
/obj/machinery/atmospherics/trinary/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
air1 = new
|
||||
|
||||
@@ -302,7 +302,7 @@
|
||||
|
||||
|
||||
|
||||
/obj/machinery/atmospherics/tvalve/digital/Initialize()
|
||||
/obj/machinery/atmospherics/tvalve/digital/Initialize(mapload)
|
||||
. = ..()
|
||||
if(frequency)
|
||||
set_frequency(frequency)
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
var/set_temperature = T20C // Thermostat
|
||||
var/cooling = 0
|
||||
|
||||
/obj/machinery/atmospherics/unary/freezer/Initialize()
|
||||
/obj/machinery/atmospherics/unary/freezer/Initialize(mapload)
|
||||
. = ..()
|
||||
default_apply_parts()
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
var/set_temperature = T20C //thermostat
|
||||
var/heating = 0 //mainly for icon updates
|
||||
|
||||
/obj/machinery/atmospherics/unary/heater/Initialize()
|
||||
/obj/machinery/atmospherics/unary/heater/Initialize(mapload)
|
||||
. = ..()
|
||||
default_apply_parts()
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
level = 1
|
||||
|
||||
/obj/machinery/atmospherics/unary/outlet_injector/Initialize()
|
||||
/obj/machinery/atmospherics/unary/outlet_injector/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
air_contents.volume = ATMOS_DEFAULT_VOLUME_PUMP + 500 //Give it a small reservoir for injecting. Also allows it to have a higher flow rate limit than vent pumps, to differentiate injectors a bit more.
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
var/welded = 0 //defining this here for ventcrawl stuff
|
||||
|
||||
/obj/machinery/atmospherics/unary/Initialize()
|
||||
/obj/machinery/atmospherics/unary/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
air_contents = new
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
pressure_checks = 2
|
||||
pressure_checks_default = 2
|
||||
|
||||
/obj/machinery/atmospherics/unary/vent_pump/Initialize()
|
||||
/obj/machinery/atmospherics/unary/vent_pump/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
air_contents.volume = ATMOS_DEFAULT_VOLUME_PUMP
|
||||
@@ -116,7 +116,7 @@
|
||||
icon_connect_type = "-aux"
|
||||
connect_types = CONNECT_TYPE_AUX //connects to aux pipes
|
||||
|
||||
/obj/machinery/atmospherics/unary/vent_pump/high_volume/Initialize()
|
||||
/obj/machinery/atmospherics/unary/vent_pump/high_volume/Initialize(mapload)
|
||||
. = ..()
|
||||
air_contents.volume = ATMOS_DEFAULT_VOLUME_PUMP + 800
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
power_channel = ENVIRON
|
||||
power_rating = 30000 //15 kW ~ 20 HP
|
||||
|
||||
/obj/machinery/atmospherics/unary/vent_pump/engine/Initialize()
|
||||
/obj/machinery/atmospherics/unary/vent_pump/engine/Initialize(mapload)
|
||||
. = ..()
|
||||
air_contents.volume = ATMOS_DEFAULT_VOLUME_PUMP + 500 //meant to match air injector
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
use_power = USE_POWER_IDLE
|
||||
icon_state = "map_scrubber_on"
|
||||
|
||||
/obj/machinery/atmospherics/unary/vent_scrubber/Initialize()
|
||||
/obj/machinery/atmospherics/unary/vent_scrubber/Initialize(mapload)
|
||||
. = ..()
|
||||
air_contents.volume = ATMOS_DEFAULT_VOLUME_FILTER
|
||||
|
||||
|
||||
@@ -263,7 +263,7 @@
|
||||
if(frequency)
|
||||
radio_connection = radio_controller.add_object(src, frequency, RADIO_ATMOSIA)
|
||||
|
||||
/obj/machinery/atmospherics/valve/digital/Initialize()
|
||||
/obj/machinery/atmospherics/valve/digital/Initialize(mapload)
|
||||
. = ..()
|
||||
if(frequency)
|
||||
set_frequency(frequency)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
buckle_lying = 1
|
||||
|
||||
// BubbleWrap
|
||||
/obj/machinery/atmospherics/pipe/simple/heat_exchanging/Initialize()
|
||||
/obj/machinery/atmospherics/pipe/simple/heat_exchanging/Initialize(mapload)
|
||||
. = ..()
|
||||
// BubbleWrap END
|
||||
color = "#404040" //we don't make use of the fancy overlay system for colours, use this to set the default.
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
level = 1
|
||||
|
||||
/obj/machinery/atmospherics/pipe/manifold/Initialize()
|
||||
/obj/machinery/atmospherics/pipe/manifold/Initialize(mapload)
|
||||
. = ..()
|
||||
alpha = 255
|
||||
icon = null
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
level = 1
|
||||
|
||||
/obj/machinery/atmospherics/pipe/manifold4w/Initialize()
|
||||
/obj/machinery/atmospherics/pipe/manifold4w/Initialize(mapload)
|
||||
. = ..()
|
||||
alpha = 255
|
||||
icon = null
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
/obj/machinery/atmospherics/pipe/drain_power()
|
||||
return -1
|
||||
|
||||
/obj/machinery/atmospherics/pipe/Initialize()
|
||||
/obj/machinery/atmospherics/pipe/Initialize(mapload)
|
||||
if(istype(get_turf(src), /turf/simulated/wall) || istype(get_turf(src), /turf/simulated/shuttle/wall) || istype(get_turf(src), /turf/unsimulated/wall))
|
||||
level = 1
|
||||
. = ..()
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
level = 1
|
||||
|
||||
/obj/machinery/atmospherics/pipe/simple/Initialize()
|
||||
/obj/machinery/atmospherics/pipe/simple/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
// Pipe colors and icon states are handled by an image cache - so color and icon should
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
pipe_flags = PIPING_DEFAULT_LAYER_ONLY
|
||||
density = TRUE
|
||||
|
||||
/obj/machinery/atmospherics/pipe/tank/Initialize()
|
||||
/obj/machinery/atmospherics/pipe/tank/Initialize(mapload)
|
||||
icon_state = "air"
|
||||
. = ..()
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
name = "Pressure Tank (Air)"
|
||||
icon_state = "air_map"
|
||||
|
||||
/obj/machinery/atmospherics/pipe/tank/air/Initialize()
|
||||
/obj/machinery/atmospherics/pipe/tank/air/Initialize(mapload)
|
||||
air_temporary = new
|
||||
air_temporary.volume = volume
|
||||
air_temporary.temperature = T20C
|
||||
@@ -90,7 +90,7 @@
|
||||
name = "Pressure Tank (Oxygen)"
|
||||
icon_state = "o2_map"
|
||||
|
||||
/obj/machinery/atmospherics/pipe/tank/oxygen/Initialize()
|
||||
/obj/machinery/atmospherics/pipe/tank/oxygen/Initialize(mapload)
|
||||
air_temporary = new
|
||||
air_temporary.volume = volume
|
||||
air_temporary.temperature = T20C
|
||||
@@ -105,7 +105,7 @@
|
||||
icon_state = "n2_map"
|
||||
volume = 40000 //Vorestation edit
|
||||
|
||||
/obj/machinery/atmospherics/pipe/tank/nitrogen/Initialize()
|
||||
/obj/machinery/atmospherics/pipe/tank/nitrogen/Initialize(mapload)
|
||||
air_temporary = new
|
||||
air_temporary.volume = volume
|
||||
air_temporary.temperature = T20C
|
||||
@@ -119,7 +119,7 @@
|
||||
name = "Pressure Tank (Carbon Dioxide)"
|
||||
icon_state = "co2_map"
|
||||
|
||||
/obj/machinery/atmospherics/pipe/tank/carbon_dioxide/Initialize()
|
||||
/obj/machinery/atmospherics/pipe/tank/carbon_dioxide/Initialize(mapload)
|
||||
air_temporary = new
|
||||
air_temporary.volume = volume
|
||||
air_temporary.temperature = T20C
|
||||
@@ -134,7 +134,7 @@
|
||||
icon_state = "phoron_map"
|
||||
connect_types = CONNECT_TYPE_REGULAR|CONNECT_TYPE_FUEL
|
||||
|
||||
/obj/machinery/atmospherics/pipe/tank/phoron/Initialize()
|
||||
/obj/machinery/atmospherics/pipe/tank/phoron/Initialize(mapload)
|
||||
air_temporary = new
|
||||
air_temporary.volume = volume
|
||||
air_temporary.temperature = T20C
|
||||
@@ -148,7 +148,7 @@
|
||||
name = "Pressure Tank (Nitrous Oxide)"
|
||||
icon_state = "n2o_map"
|
||||
|
||||
/obj/machinery/atmospherics/pipe/tank/nitrous_oxide/Initialize()
|
||||
/obj/machinery/atmospherics/pipe/tank/nitrous_oxide/Initialize(mapload)
|
||||
air_temporary = new
|
||||
air_temporary.volume = volume
|
||||
air_temporary.temperature = T0C
|
||||
|
||||
Reference in New Issue
Block a user