Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The winter coat nerf that did not only nerf winter coats.
#15
(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.
Code:
/mob/living/carbon/human/protected_from_space()
    var/space_suit = 0
    if (wear_suit && (wear_suit.c_flags & SPACEWEAR))
        space_suit++
    if (w_uniform && (w_uniform.c_flags & SPACEWEAR))
        space_suit++
    if (head && (head.c_flags & SPACEWEAR))
        space_suit++
    //if (wear_mask && (wear_mask.c_flags & SPACEWEAR))
        //space_suit++

    if (space_suit >= 2)
        return 1
    else
return 0

Code:
    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

        thermal_protection = max(0,min(thermal_protection,100))
return thermal_protection
Yeah, two spacewear flags act as 100 resistance.


Messages In This Thread
RE: The winter coat nerf that did not only nerf winter coats. - by Vitatroll - 04-14-2017, 08:48 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)