示例#1
0
            internal float <> m__2(HediffDef d, DebugOutputsInfection.InfectionLuck il, bool bedridden)
            {
                float b    = (!this.isAnimal(d)) ? ThingDefOf.Bed.GetStatValueAbstract(StatDefOf.ImmunityGainSpeedFactor, null) : 1f;
                float num  = Mathf.Lerp(1f, b, (!bedridden) ? 0.3f : 1f);
                float num2 = num * StatDefOf.ImmunityGainSpeed.GetStatPart <StatPart_Resting>().factor;

                return(this.baseImmunityIncrease(d, il) * num2);
            }
示例#2
0
 internal float <> m__3(HediffDef d, DebugOutputsInfection.InfectionLuck il, float tend)
 {
     if (this.tendedSeverityIncrease(d, tend) <= 0f)
     {
         return(float.PositiveInfinity);
     }
     return(d.lethalSeverity / this.tendedSeverityIncrease(d, tend) * this.immunityIncrease(d, il, true));
 }
示例#3
0
            internal float <> m__4(HediffDef d, DebugOutputsInfection.InfectionLuck il, float tend)
            {
                float result;

                if (this.tendedSeverityIncrease(d, tend) <= 0f)
                {
                    result = float.PositiveInfinity;
                }
                else
                {
                    result = this.immunityOnReveal(d, il) + (d.lethalSeverity - this.revealSeverity(d)) / this.tendedSeverityIncrease(d, tend) * this.immunityIncrease(d, il, true);
                }
                return(result);
            }
示例#4
0
        private static float <Infections> m__2(DebugOutputsInfection.InfectionLuck il)
        {
            float result = 1f;

            if (il == DebugOutputsInfection.InfectionLuck.Bad)
            {
                result = 0.8f;
            }
            if (il == DebugOutputsInfection.InfectionLuck.Good)
            {
                result = 1.2f;
            }
            return(result);
        }
示例#5
0
 internal float <> m__3(HediffDef d, DebugOutputsInfection.InfectionLuck il)
 {
     return(this.revealSeverity(d) / this.baseSeverityIncrease(d) * this.immunityIncrease(d, il, false));
 }
示例#6
0
 internal float <> m__0(HediffDef d, DebugOutputsInfection.InfectionLuck il)
 {
     return(d.CompProps <HediffCompProperties_Immunizable>().immunityPerDaySick *this.ilc(il));
 }