protected override void FinalizeDesignationSucceeded() { base.FinalizeDesignationSucceeded(); using (IEnumerator <PawnKindDef> enumerator = (from p in this.justDesignated select p.kindDef).Distinct <PawnKindDef>().GetEnumerator()) { while (enumerator.MoveNext()) { PawnKindDef kind = enumerator.Current; HuntUtility.ShowDesignationWarnings(this.justDesignated.First((Pawn x) => x.kindDef == kind)); } } this.justDesignated.Clear(); }
protected override void Notify_DesignationAdded(Pawn pawn) { pawn.MapHeld.designationManager.TryRemoveDesignationOn(pawn, DesignationDefOf.Tame); HuntUtility.ShowDesignationWarnings(pawn); }