public override void PostIngested(Pawn ingester) { if (this.Stage != RotStage.Fresh) { FoodUtility.AddFoodPoisoningHediff(ingester, this.parent, FoodPoisonCause.Rotten); } }
public override void PostIngested(Pawn ingester) { if (Rand.Value < this.poisonPct) { FoodUtility.AddFoodPoisoningHediff(ingester, this.parent); } }
public override void PostIngested(Pawn ingester) { if (Rand.Chance(this.poisonPct * Find.Storyteller.difficulty.foodPoisonChanceFactor)) { FoodUtility.AddFoodPoisoningHediff(ingester, this.parent, this.cause); } }
public override void PostIngested(Pawn ingester) { if (Stage != 0) { FoodUtility.AddFoodPoisoningHediff(ingester, parent, FoodPoisonCause.Rotten); } }
public override void PostIngested(Pawn ingester) { if (Stage != 0 && FoodUtility.GetFoodPoisonChanceFactor(ingester) > float.Epsilon) { FoodUtility.AddFoodPoisoningHediff(ingester, parent, FoodPoisonCause.Rotten); } }
public override void PostIngested(Pawn ingester) { if (this.Stage != 0) { FoodUtility.AddFoodPoisoningHediff(ingester, base.parent); } }
public override void PostIngested(Pawn ingester) { if (Rand.Chance(poisonPct * FoodUtility.GetFoodPoisonChanceFactor(ingester))) { FoodUtility.AddFoodPoisoningHediff(ingester, parent, cause); } }
public override void PostIngested(Pawn ingester) { if (this.Props.humanlikeOnly && !ingester.RaceProps.Humanlike) { return; } if (Rand.Value < this.Props.chance) { FoodUtility.AddFoodPoisoningHediff(ingester, this.parent); } }