Merge pull request #5858 from Atermonera/suitcooler_pressurization

Suit coolers don't overheat in vacuum
This commit is contained in:
Anewbe
2019-01-18 08:14:03 -06:00
committed by VirgoBot
parent a0cb0a347d
commit 8e9e83fde0
3 changed files with 11 additions and 3 deletions
@@ -46,7 +46,9 @@
var/mob/living/carbon/human/H = loc
var/efficiency = 1 - H.get_pressure_weakness() // You need to have a good seal for effective cooling
var/turf/T = get_turf(src)
var/datum/gas_mixture/environment = T.return_air()
var/efficiency = 1 - H.get_pressure_weakness(environment.return_pressure()) // You need to have a good seal for effective cooling
var/temp_adj = 0 // How much the unit cools you. Adjusted later on.
var/env_temp = get_environment_temperature() // This won't save you from a fire
var/thermal_protection = H.get_heat_protection(env_temp) // ... unless you've got a good suit.