[MIRROR] Working portable atmos reactions (#3759)

* Working portable atmos reactions (#57211)

* Working in canister reactions

* same for pumps

* and scrubbers

* Working portable atmos reactions

Co-authored-by: Ghilker <42839747+Ghilker@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-03-02 20:11:14 +01:00
committed by GitHub
parent d9a1dee295
commit 558e17d1f7
3 changed files with 3 additions and 0 deletions
@@ -475,6 +475,7 @@
investigate_log("[key_name(user)] started a transfer into [holding].", INVESTIGATE_ATMOS)
/obj/machinery/portable_atmospherics/canister/process_atmos(delta_time)
. = ..()
if(machine_stat & BROKEN)
return PROCESS_KILL
if(timing && valve_timer < world.time)
@@ -45,6 +45,7 @@
. += "siphon-connector"
/obj/machinery/portable_atmospherics/pump/process_atmos(delta_time)
. = ..()
var/pressure = air_contents.return_pressure()
var/temperature = air_contents.return_temperature()
///function used to check the limit of the pumps and also set the amount of damage that the pump can receive, if the heat and pressure are way higher than the limit the more damage will be done
@@ -55,6 +55,7 @@
. += "scrubber-connector"
/obj/machinery/portable_atmospherics/scrubber/process_atmos(delta_time)
. = ..()
var/pressure = air_contents.return_pressure()
var/temperature = air_contents.return_temperature()
///function used to check the limit of the scrubbers and also set the amount of damage that the scrubber can receive, if the heat and pressure are way higher than the limit the more damage will be done