fixes #6005 and broken ancient human low/high pressure code.

-fixes low/high pressure not damaging unsealed/damaged spacesuits.
-refactors procs and adds more comments.
-removes unused/dead code.
This commit is contained in:
Walter0o
2014-08-17 18:06:30 +02:00
parent 9f57c1b16e
commit e8592d4f41
5 changed files with 39 additions and 33 deletions

View File

@@ -42,7 +42,7 @@
var/mob/living/carbon/human/H = loc
var/efficiency = H.get_pressure_protection() //you need to have a good seal for effective cooling
var/efficiency = 1 - H.get_pressure_weakness() //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)