public override void CompTick() { if (Active) { float num = 1f / (float)(GatherResourcesIntervalDays * 60000); Pawn pawn = parent as Pawn; if (pawn != null) { num *= PawnUtility.BodyResourceGrowthSpeed(pawn); } fullness += num; if (fullness > 1f) { fullness = 1f; } } }
public override void CompTick() { if (this.Active) { float num = (float)(1.0 / (float)(this.GatherResourcesIntervalDays * 60000)); Pawn pawn = base.parent as Pawn; if (pawn != null) { num *= PawnUtility.BodyResourceGrowthSpeed(pawn); } this.fullness += num; if (this.fullness > 1.0) { this.fullness = 1f; } } }
public override void CompTick() { if (Active) { float num = 1f / (Props.eggLayIntervalDays * 60000f); Pawn pawn = parent as Pawn; if (pawn != null) { num *= PawnUtility.BodyResourceGrowthSpeed(pawn); } eggProgress += num; if (eggProgress > 1f) { eggProgress = 1f; } if (ProgressStoppedBecauseUnfertilized) { eggProgress = Props.eggProgressUnfertilizedMax; } } }
public override void CompTick() { if (this.Active) { float num = (float)(1.0 / (this.Props.eggLayIntervalDays * 60000.0)); Pawn pawn = base.parent as Pawn; if (pawn != null) { num *= PawnUtility.BodyResourceGrowthSpeed(pawn); } this.eggProgress += num; if (this.eggProgress > 1.0) { this.eggProgress = 1f; } if (this.ProgressStoppedBecauseUnfertilized) { this.eggProgress = this.Props.eggProgressUnfertilizedMax; } } }