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); }
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)); }
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); }
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); }
internal float <> m__3(HediffDef d, DebugOutputsInfection.InfectionLuck il) { return(this.revealSeverity(d) / this.baseSeverityIncrease(d) * this.immunityIncrease(d, il, false)); }
internal float <> m__0(HediffDef d, DebugOutputsInfection.InfectionLuck il) { return(d.CompProps <HediffCompProperties_Immunizable>().immunityPerDaySick *this.ilc(il)); }