From fb8b8b7f5c18b04f254b9f364cd8959fdc36962d Mon Sep 17 00:00:00 2001 From: Hatterhat Date: Sun, 20 Feb 2022 01:05:01 -0600 Subject: [PATCH] what's my name? dunkaccino --- code/modules/clothing/spacesuits/rig/rig.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/clothing/spacesuits/rig/rig.dm b/code/modules/clothing/spacesuits/rig/rig.dm index 52922098076..780895db224 100644 --- a/code/modules/clothing/spacesuits/rig/rig.dm +++ b/code/modules/clothing/spacesuits/rig/rig.dm @@ -482,6 +482,12 @@ var/efficiency = 1 - H.get_pressure_weakness(environment.return_pressure()) // You need to have a good seal for effective cooling var/env_temp = get_environment_temperature() //wont save you from a fire var/temp_adj = min(H.bodytemperature - max(thermostat, env_temp), max_cooling) + var/thermal_protection = H.get_heat_protection(env_temp) // ... unless you've got a good suit. + + if(thermal_protection < 0.99) //For some reason, < 1 returns false if the value is 1. + temp_adj = min(H.bodytemperature - max(thermostat, env_temp), max_cooling) + else + temp_adj = min(H.bodytemperature - thermostat, max_cooling) if (temp_adj < 0.5) //only cools, doesn't heat, also we don't need extreme precision return