public override string CompDebugString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendLine(base.CompDebugString()); if (this.severityPerDayNotImmuneRandomFactor != 1f) { stringBuilder.AppendLine("severityPerDayNotImmuneRandomFactor: " + this.severityPerDayNotImmuneRandomFactor.ToString("0.##")); } if (!base.Pawn.Dead) { ImmunityRecord immunityRecord = base.Pawn.health.immunity.GetImmunityRecord(base.Def); if (immunityRecord != null) { stringBuilder.AppendLine("immunity change per day: " + (immunityRecord.ImmunityChangePerTick(base.Pawn, true, this.parent) * 60000f).ToString("F3")); } } return(stringBuilder.ToString()); }
public override string CompDebugString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendLine(base.CompDebugString()); if (this.severityPerDayNotImmuneRandomFactor != 1f) { stringBuilder.AppendLine("severityPerDayNotImmuneRandomFactor: " + this.severityPerDayNotImmuneRandomFactor.ToString("0.##")); } if (!base.Pawn.Dead) { ImmunityRecord immunityRecord = base.Pawn.health.immunity.GetImmunityRecord(base.Def); if (immunityRecord != null) { stringBuilder.AppendLine("immunity change per day: " + (immunityRecord.ImmunityChangePerTick(base.Pawn, true, this.parent) * 60000f).ToString("F3")); stringBuilder.AppendLine(" pawn immunity gain speed: " + StatDefOf.ImmunityGainSpeed.ValueToString(base.Pawn.GetStatValue(StatDefOf.ImmunityGainSpeed, true), ToStringNumberSense.Absolute)); } } return(stringBuilder.ToString()); }