From f47f0de0b5d77ba6d97f44476a98175586fd583e Mon Sep 17 00:00:00 2001 From: Migratingcocofruit <69551563+Migratingcocofruit@users.noreply.github.com> Date: Thu, 30 Jan 2025 07:23:00 +0200 Subject: [PATCH] Corrects the pressure readouts on non-detailed gas reports (#28174) --- code/game/objects/items/devices/scanners.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm index 37372543ccb..8a81b1fe56f 100644 --- a/code/game/objects/items/devices/scanners.dm +++ b/code/game/objects/items/devices/scanners.dm @@ -777,7 +777,6 @@ SLIME SCANNER else// Sum mixtures then present for(var/datum/gas_mixture/air as anything in airs) total_moles += air.total_moles() - pressure += air.return_pressure() volume += air.return_volume() heat_capacity += air.heat_capacity() thermal_energy += air.thermal_energy() @@ -789,6 +788,7 @@ SLIME SCANNER agent_b += air.agent_b() var/temperature = heat_capacity ? thermal_energy / heat_capacity : 0 + pressure = volume ? total_moles * R_IDEAL_GAS_EQUATION * temperature / volume : 0 if(total_moles) message += "Total: [round(total_moles, 0.01)] moles"