(04-14-2017, 01:08 AM)Dr Zoidcrab Wrote: The NASSA suit is only 100% if you wear a gas mask or space helmet with it, otherwise it's 50%; all space suits seem to work this way.
proc/get_cold_protection()
// calculate 0-100% insulation from cold environments
if (!src)
return 0
// Sealed space suit? If so, consider it to be full protection
if (src.protected_from_space())
return 100
var/thermal_protection = 10 // base value
// Resistance from Bio Effects
if (src.bioHolder)
if (src.bioHolder.HasEffect("fat"))
thermal_protection += 10
if (src.bioHolder.HasEffect("dwarf"))
thermal_protection += 10
// Resistance from Clothing
for (var/obj/item/clothing/C in src.get_equipped_items())
thermal_protection += C.cold_resistance
// Resistance from covered body parts
if (w_uniform && (w_uniform.body_parts_covered & TORSO))
thermal_protection += 10
if (wear_suit)
if (wear_suit.body_parts_covered & TORSO)
thermal_protection += 10
if (wear_suit.body_parts_covered & LEGS)
thermal_protection += 10
if (wear_suit.body_parts_covered & ARMS)
thermal_protection += 10