public void ConclusionAdder(Pawn pawn) { pawn.health.AddHediff(HediffDef.Named("Rewire"), null, null); if (PawnChanger.HasMood(pawn, ThoughtDef.Named("Wrecked")) || PawnChanger.HasMood(pawn, ThoughtDef.Named("Scrambled"))) { PawnChanger.ExecuteBadThings(pawn); } PawnChanger.SetMood(pawn); }
public void CookIt() { foreach (Thing current in this.container) { Pawn pawn = current as Pawn; if (pawn != null) { PawnChanger.SetPawnTraits(pawn, Rand.RangeInclusive(2, 3)); pawn.health.AddHediff(HediffDef.Named("Rewire"), null, null); if (PawnChanger.HasMood(pawn, ThoughtDef.Named("Wrecked")) || PawnChanger.HasMood(pawn, ThoughtDef.Named("Scrambled"))) { PawnChanger.ExecuteBadThings(pawn); } PawnChanger.SetMood(pawn); } } }