mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
fixes things per aran's request
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
|
||||
/obj/machinery/atmospherics/components/binary/circulator/proc/return_transfer_air()
|
||||
|
||||
var/datum/gas_mixture/air1 = airs["a1"]
|
||||
var/datum/gas_mixture/air2 = airs["a2"]
|
||||
var/datum/gas_mixture/air1 = airs[AIR1]
|
||||
var/datum/gas_mixture/air2 = airs[AIR2]
|
||||
|
||||
var/output_starting_pressure = air1.return_pressure()
|
||||
var/input_starting_pressure = air2.return_pressure()
|
||||
|
||||
@@ -42,8 +42,10 @@ Acts like a normal vent, but has an input AND output.
|
||||
|
||||
/obj/machinery/atmospherics/components/binary/dp_vent_pump/high_volume/New()
|
||||
..()
|
||||
var/datum/gas_mixture/air1 = airs["a1"] ; air1.volume = 1000
|
||||
var/datum/gas_mixture/air2 = airs["a2"] ; air2.volume = 1000
|
||||
var/datum/gas_mixture/air1 = airs[AIR1]
|
||||
var/datum/gas_mixture/air2 = airs[AIR2]
|
||||
air1.volume = 1000
|
||||
air2.volume = 1000
|
||||
|
||||
/obj/machinery/atmospherics/components/binary/dp_vent_pump/update_icon_nopipes()
|
||||
overlays.Cut()
|
||||
@@ -64,8 +66,8 @@ Acts like a normal vent, but has an input AND output.
|
||||
|
||||
if(!on)
|
||||
return 0
|
||||
var/datum/gas_mixture/air1 = airs["a1"]
|
||||
var/datum/gas_mixture/air2 = airs["a2"]
|
||||
var/datum/gas_mixture/air1 = airs[AIR1]
|
||||
var/datum/gas_mixture/air2 = airs[AIR2]
|
||||
|
||||
var/datum/gas_mixture/environment = loc.return_air()
|
||||
var/environment_pressure = environment.return_pressure()
|
||||
@@ -87,7 +89,8 @@ Acts like a normal vent, but has an input AND output.
|
||||
loc.assume_air(removed)
|
||||
air_update_turf()
|
||||
|
||||
var/datum/pipeline/parent1 = parents["p1"] ; parent1.update = 1
|
||||
var/datum/pipeline/parent1 = parents[PARENT1]
|
||||
parent1.update = 1
|
||||
|
||||
else //external -> output
|
||||
var/pressure_delta = 10000
|
||||
@@ -106,7 +109,8 @@ Acts like a normal vent, but has an input AND output.
|
||||
air2.merge(removed)
|
||||
air_update_turf()
|
||||
|
||||
var/datum/pipeline/parent2 = parents["p2"] ; parent2.update = 1
|
||||
var/datum/pipeline/parent2 = parents[PARENT2]
|
||||
parent2.update = 1
|
||||
|
||||
return 1
|
||||
|
||||
|
||||
@@ -40,8 +40,8 @@ Passive gate is similar to the regular pump except:
|
||||
if(!on)
|
||||
return 0
|
||||
|
||||
var/datum/gas_mixture/air1 = airs["a1"]
|
||||
var/datum/gas_mixture/air2 = airs["a2"]
|
||||
var/datum/gas_mixture/air1 = airs[AIR1]
|
||||
var/datum/gas_mixture/air2 = airs[AIR2]
|
||||
|
||||
var/output_starting_pressure = air2.return_pressure()
|
||||
var/input_starting_pressure = air1.return_pressure()
|
||||
|
||||
@@ -48,8 +48,8 @@ Thus, the two variables affect pump operation are set in New():
|
||||
if(!on)
|
||||
return 0
|
||||
|
||||
var/datum/gas_mixture/air1 = airs["a1"]
|
||||
var/datum/gas_mixture/air2 = airs["a2"]
|
||||
var/datum/gas_mixture/air1 = airs[AIR1]
|
||||
var/datum/gas_mixture/air2 = airs[AIR2]
|
||||
|
||||
var/output_starting_pressure = air2.return_pressure()
|
||||
|
||||
|
||||
@@ -28,7 +28,8 @@ It's like a regular ol' straight pipe, but you can turn it on and off.
|
||||
open = 1
|
||||
update_icon_nopipes()
|
||||
update_parents()
|
||||
var/datum/pipeline/parent1 = parents["p1"] ; parent1.reconcile_air()
|
||||
var/datum/pipeline/parent1 = parents[PARENT1]
|
||||
parent1.reconcile_air()
|
||||
investigate_log("was opened by [usr ? key_name(usr) : "a remote signal"]", "atmos")
|
||||
|
||||
/obj/machinery/atmospherics/components/binary/valve/proc/close()
|
||||
|
||||
@@ -48,8 +48,8 @@ Thus, the two variables affect pump operation are set in New():
|
||||
if(!on)
|
||||
return 0
|
||||
|
||||
var/datum/gas_mixture/air1 = airs["a1"]
|
||||
var/datum/gas_mixture/air2 = airs["a2"]
|
||||
var/datum/gas_mixture/air1 = airs[AIR1]
|
||||
var/datum/gas_mixture/air2 = airs[AIR2]
|
||||
|
||||
// Pump mechanism just won't do anything if the pressure is too high/too low
|
||||
|
||||
@@ -125,7 +125,7 @@ Thus, the two variables affect pump operation are set in New():
|
||||
on = !on
|
||||
|
||||
if("set_transfer_rate" in signal.data)
|
||||
var/datum/gas_mixture/air1 = airs["a1"]
|
||||
var/datum/gas_mixture/air1 = airs[AIR1]
|
||||
transfer_rate = Clamp(
|
||||
text2num(signal.data["set_transfer_rate"]),
|
||||
0,
|
||||
|
||||
Reference in New Issue
Block a user