diff --git a/code/__DEFINES/atmospherics/atmos_piping.dm b/code/__DEFINES/atmospherics/atmos_piping.dm index 3d864e6485f..bb5350ee17e 100644 --- a/code/__DEFINES/atmospherics/atmos_piping.dm +++ b/code/__DEFINES/atmospherics/atmos_piping.dm @@ -22,7 +22,13 @@ #define MAX_OUTPUT_PRESSURE 4500 /// (L/s) Maximum speed powered equipment can work at. #define MAX_TRANSFER_RATE 200 -/// How many percent of the contents that an overclocked volume pumps leak into the air +/// (kPa) Minimum pressure volume pumps can move. +#define VOLUME_PUMP_MINIMUM_OUTPUT_PRESSURE 0.01 +/// (kPa) What pressure volume pumps max out at. +#define VOLUME_PUMP_MAX_OUTPUT_PRESSURE 9000 +/// (kPa) Allowed pressure difference between input and output pipenets for overclocked volume pump. +#define VOLUME_PUMP_OVERPRESSURE_ALLOWANCE 1000 +/// How many percent of the contents that an overclocked volume pumps leak into the air. #define VOLUME_PUMP_LEAK_AMOUNT 0.1 //used for device_type vars #define UNARY 1 diff --git a/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm b/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm index 31183a8eb51..1170ea32bde 100644 --- a/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm +++ b/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm @@ -1,7 +1,7 @@ -// Every cycle, the pump uses the air in air_in to try and make air_out the perfect pressure. +// Every cycle, the pump uses the air in air_in to try and move a specific volume of gas into air_out. // -// node1, air1, network1 correspond to input -// node2, air2, network2 correspond to output +// node1, air1, network1 corresponds to input +// node2, air2, network2 corresponds to output // // Thus, the two variables affect pump operation are set in New(): // air1.volume @@ -72,10 +72,10 @@ var/input_starting_pressure = air1.return_pressure() var/output_starting_pressure = air2.return_pressure() - if((input_starting_pressure < 0.01) || ((output_starting_pressure > 9000)) && !overclocked) + if((input_starting_pressure < VOLUME_PUMP_MINIMUM_OUTPUT_PRESSURE) || ((output_starting_pressure > VOLUME_PUMP_MAX_OUTPUT_PRESSURE)) && !overclocked) return - if(overclocked && (output_starting_pressure-input_starting_pressure > 1000))//Overclocked pumps can only force gas a certain amount. + if(overclocked && (output_starting_pressure-input_starting_pressure > VOLUME_PUMP_OVERPRESSURE_ALLOWANCE))//Overclocked pumps can only force gas a certain amount. return