public override void LordToilTick() { if (Find.TickManager.TicksGame % 100 == 0) { GatherAnimalsAndSlavesForShipsUtility.CheckArrived(this.lord, this.lord.ownedPawns.Where(x => ShipHarmony.IsShip(x)).ToList(), this.exitSpot, "ReadyToExitMap", (Pawn x) => true, true, null); } }
public override void LordToilTick() { if (Find.TickManager.TicksGame % 100 == 0) { GatherAnimalsAndSlavesForShipsUtility.CheckArrived(lord, lord.ownedPawns.Where(p => p is VehiclePawn).ToList(), exitSpot, "ReadyToExitMap", (Pawn p) => true, lord.ownedPawns.NotNullAndAny(b => b.IsBoat()), null); } }
public override void LordToilTick() { if (Find.TickManager.TicksGame % 100 == 0) { Lord lord = this.lord; List <Pawn> pawns = this.lord.ownedPawns.Where(x => !ShipHarmony.IsShip(x)).ToList(); IntVec3 intVec = this.meetingPoint; string memo = "AllSlavesGathered"; Predicate <Pawn> shouldCheckIfArrived = (Pawn x) => !x.IsColonist && !x.RaceProps.Animal; GatherAnimalsAndSlavesForShipsUtility.CheckArrived(lord, pawns, intVec, memo, shouldCheckIfArrived, false, null); } }