public List<Fleet> CheckColonizableSystems(Galaxy galaxy)
{
List<Fleet> colonizingFleets = new List<Fleet>();
foreach (Fleet fleet in FleetManager.GetFleets())
{
if (fleet.TravelNodes == null || fleet.TravelNodes.Count == 0)
{
if (fleet.AdjacentSystem.Planets[0].Owner != null)
{
continue;
}
int colonyReq = fleet.AdjacentSystem.Planets[0].ColonyRequirement;
foreach (Ship ship in fleet.OrderedShips)
{
foreach (var special in ship.Specials)
{
if (special != null && special.Technology.Colony >= colonyReq)
{
colonizingFleets.Add(fleet);
break;
}
}
}
}
}
return colonizingFleets;
}