public override void LordToilTick()
 {
     if (Find.TickManager.TicksGame % 100 == 0)
     {
         GatherAnimalsAndSlavesForCaravanUtility.CheckArrived(this.lord, this.exitSpot, "ReadyToExitMap", (Pawn x) => true, null);
     }
 }
Пример #2
0
 public override void LordToilTick()
 {
     if (Find.TickManager.TicksGame % 100 == 0)
     {
         GatherAnimalsAndSlavesForCaravanUtility.CheckArrived(this.lord, this.lord.ownedPawns, this.meetingPoint, "AllSlavesGathered", (Pawn x) => !x.IsColonist && !x.RaceProps.Animal, new Predicate <Pawn>(GatherAnimalsAndSlavesForCaravanUtility.IsFollowingAnyone));
     }
 }
 public override void LordToilTick()
 {
     if (Find.TickManager.TicksGame % 100 == 0)
     {
         GatherAnimalsAndSlavesForCaravanUtility.CheckArrived(lord, lord.ownedPawns, meetingPoint, "AllAnimalsGathered", (Pawn x) => x.RaceProps.Animal, (Pawn x) => GatherAnimalsAndSlavesForCaravanUtility.IsFollowingAnyone(x));
     }
 }
 public override void LordToilTick()
 {
     if (Find.TickManager.TicksGame % 100 == 0)
     {
         Lord             lord   = this.lord;
         IntVec3          intVec = this.meetingPoint;
         string           memo   = "AllAnimalsGathered";
         Predicate <Pawn> shouldCheckIfArrived = (Pawn x) => x.RaceProps.Animal;
         if (LordToil_PrepareCaravan_GatherAnimals.< > f__mg$cache0 == null)
         {
             LordToil_PrepareCaravan_GatherAnimals.< > f__mg$cache0 = new Predicate <Pawn>(GatherAnimalsAndSlavesForCaravanUtility.IsFollowingAnyone);
         }
         GatherAnimalsAndSlavesForCaravanUtility.CheckArrived(lord, intVec, memo, shouldCheckIfArrived, LordToil_PrepareCaravan_GatherAnimals.< > f__mg$cache0);
     }
 }