From 872187afbc0f985ec1272f4e7c72b4ee4ca350f2 Mon Sep 17 00:00:00 2001 From: Phantastic-Swan Date: Wed, 6 Aug 2025 20:25:52 +0200 Subject: [PATCH] added defines and undefines for PP_MOLES since we lacked them here for some reason??? --- GainStation13/code/mechanics/water_sponge.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GainStation13/code/mechanics/water_sponge.dm b/GainStation13/code/mechanics/water_sponge.dm index b43fc4f2c8..b2e2151ff8 100644 --- a/GainStation13/code/mechanics/water_sponge.dm +++ b/GainStation13/code/mechanics/water_sponge.dm @@ -49,9 +49,11 @@ if(breath) var/pressure = breath.return_pressure() var/total_moles = breath.total_moles() - //#define PP_MOLES(X) ((X / total_moles) * pressure) + #define PP_MOLES(X) ((X / total_moles) * pressure) #define PP(air, gas) PP_MOLES(air.get_moles(gas)) var/gas_breathed = PP(breath,GAS_H2O) + #undef PP_MOLES + #undef PP if(gas_breathed > 0) H.reagents.add_reagent(/datum/reagent/water, gas_breathed) breath.adjust_moles(GAS_H2O, -gas_breathed)