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