Fix Temp check.

This commit is contained in:
Atermonera
2020-05-03 12:17:28 -04:00
committed by Aronai Sieyes
parent 0ad89da9db
commit 3ff0557e43
+3 -3
View File
@@ -817,7 +817,7 @@
//Handle normal clothing
for(var/obj/item/clothing/C in list(head,wear_suit,w_uniform,shoes,gloves,wear_mask))
if(C)
if(C.handle_low_temperature(temperature))
if(C.handle_high_temperature(temperature))
. |= C.get_heat_protection_flags()
//See proc/get_heat_protection_flags(temperature) for the description of this proc.
@@ -826,8 +826,8 @@
//Handle normal clothing
for(var/obj/item/clothing/C in list(head,wear_suit,w_uniform,shoes,gloves,wear_mask))
if(C)
if(C.handle_high_temperature(temperature))
. |= C.get_cold_protection_flags()
if(C.min_cold_protection_temperature && C.min_cold_protection_temperature <= temperature)
. |= C.cold_protection
/mob/living/carbon/human/get_heat_protection(temperature) //Temperature is the temperature you're being exposed to.
var/thermal_protection_flags = get_heat_protection_flags(temperature)