From 558e17d1f73123a0a100e9deaaa27f5477138fc2 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 2 Mar 2021 20:11:14 +0100 Subject: [PATCH] [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> --- code/modules/atmospherics/machinery/portable/canister.dm | 1 + code/modules/atmospherics/machinery/portable/pump.dm | 1 + code/modules/atmospherics/machinery/portable/scrubber.dm | 1 + 3 files changed, 3 insertions(+) diff --git a/code/modules/atmospherics/machinery/portable/canister.dm b/code/modules/atmospherics/machinery/portable/canister.dm index 045eec1ab0f..883e3562b23 100644 --- a/code/modules/atmospherics/machinery/portable/canister.dm +++ b/code/modules/atmospherics/machinery/portable/canister.dm @@ -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) diff --git a/code/modules/atmospherics/machinery/portable/pump.dm b/code/modules/atmospherics/machinery/portable/pump.dm index 106326c40be..d7f1311dc0f 100644 --- a/code/modules/atmospherics/machinery/portable/pump.dm +++ b/code/modules/atmospherics/machinery/portable/pump.dm @@ -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 diff --git a/code/modules/atmospherics/machinery/portable/scrubber.dm b/code/modules/atmospherics/machinery/portable/scrubber.dm index 6e2d7ef6279..add8dffec94 100644 --- a/code/modules/atmospherics/machinery/portable/scrubber.dm +++ b/code/modules/atmospherics/machinery/portable/scrubber.dm @@ -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