Exemple #1
0
 protected override IntVec3 GetWanderRoot(Pawn pawn)
 {
     return(WanderUtility.BestCloseWanderRoot(pawn.mindState.duty.focus.Cell, pawn));
 }
Exemple #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));
        }
Exemple #3
0
 protected override IntVec3 GetWanderRoot(Pawn pawn)
 {
     return(WanderUtility.BestCloseWanderRoot(pawn.playerSettings.Master.PositionHeld, pawn));
 }