multiplied weight gain by five and made the code more readeable (?)

This commit is contained in:
Swan
2024-12-14 20:40:47 +01:00
parent f5717c43b5
commit 960d69e9d3
+4 -3
View File
@@ -3,12 +3,13 @@
var/pressure = breath.return_pressure()
var/total_moles = breath.total_moles()
#define PP_MOLES(X) ((X / total_moles) * pressure)
#define PP(air, gas) PP_MOLES(air.get_moles(gas))
var/gas_breathed = PP(breath, GAS_FAT)
var/gas_breathed = PP_MOLES(breath.get_moles(GAS_FAT))
// #define PP(air, gas) PP_MOLES(air.get_moles(gas))
// var/gas_breathed = PP(breath, GAS_FAT)
if(gas_breathed > 0)
// investigate_log("Supermatter shard consumed by singularity.", INVESTIGATE_SINGULO)
// message_admins("gas breathed is: [gas_breathed]")
H.adjust_fatness(gas_breathed)
H.adjust_fatness(5 * gas_breathed)
breath.adjust_moles(GAS_FAT, -gas_breathed)
/obj/item/organ/lungs/check_breath(datum/gas_mixture/breath, mob/living/carbon/human/H)