added defines and undefines for PP_MOLES since we lacked them here for some reason???

This commit is contained in:
Phantastic-Swan
2025-08-06 20:25:52 +02:00
parent e59be5e480
commit 872187afbc
+3 -1
View File
@@ -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)