private bool TryFindShuttleCrashPosition(Map map, Faction faction, IntVec2 size, out IntVec3 spot)
 {
     if (DropCellFinder.FindSafeLandingSpot(out spot, faction, map, 35, 15, 25, size))
     {
         return(true);
     }
     return(false);
 }
Пример #2
0
        public static bool FindAnyLandingSpot(out IntVec3 spot, Faction faction, Map map, IntVec2?size)
        {
            if (!DropCellFinder.FindSafeLandingSpot(out spot, faction, map, 0, 15, 25, size))
            {
                IntVec3 intVec = DropCellFinder.RandomDropSpot(map);
                if (!DropCellFinder.TryFindDropSpotNear(intVec, map, out spot, false, false, false, size))
                {
                    spot = intVec;
                }
            }

            return(true);
        }