Example #1
0
 protected override IntVec3 GetWanderRoot(Pawn pawn)
 {
     return(WanderUtility.BestCloseWanderRoot(pawn.mindState.duty.focus.Cell, pawn));
 }
Example #2
0
        public static bool IsValidWanderDest(Pawn pawn, IntVec3 loc, IntVec3 root)
        {
            Room room = root.GetRoom(pawn.Map, RegionType.Set_Passable);

            return(room == null || room.RegionType == RegionType.Portal || WanderUtility.InSameRoom(root, loc, pawn.Map));
        }
Example #3
0
 protected override IntVec3 GetWanderRoot(Pawn pawn)
 {
     return(WanderUtility.BestCloseWanderRoot(pawn.playerSettings.Master.PositionHeld, pawn));
 }