Skip to content

Commit

Permalink
Hack buyShip back to ore hound mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel committed Aug 26, 2023
1 parent c9fd505 commit ebbb217
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions packages/cli/lib/behavior/buy_ship.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,24 +169,24 @@ Future<ShipBuyJob?> _getShipBuyJob(
RoutePlanner routePlanner,
Ship ship,
) async {
// final hqSystem = agentCache.headquartersSymbol.systemSymbol;
// final hqWaypoints = await waypointCache.waypointsInSystem(hqSystem);
const wantedType = ShipType.HEAVY_FREIGHTER;
final trip = assertNotNull(
findBestShipyardToBuy(
shipyardPrices,
routePlanner,
ship,
wantedType,
expectedCreditsPerSecond: 7,
),
'No shipyards found to buy $wantedType.',
const Duration(minutes: 10),
);
final hqSystem = agentCache.headquartersSymbol.systemSymbol;
final hqWaypoints = await waypointCache.waypointsInSystem(hqSystem);
// const wantedType = ShipType.HEAVY_FREIGHTER;
// final trip = assertNotNull(
// findBestShipyardToBuy(
// shipyardPrices,
// routePlanner,
// ship,
// wantedType,
// expectedCreditsPerSecond: 7,
// ),
// 'No shipyards found to buy $wantedType.',
// const Duration(minutes: 10),
// );

// final shipyardWaypoint = hqWaypoints.firstWhere((w) => w.hasShipyard);
// final shipyardSymbol = shipyardWaypoint.waypointSymbol;
final shipyardSymbol = trip.price.waypointSymbol;
final shipyardWaypoint = hqWaypoints.firstWhere((w) => w.hasShipyard);
final shipyardSymbol = shipyardWaypoint.waypointSymbol;
// final shipyardSymbol = trip.price.waypointSymbol;
final shipType = centralCommand.shipTypeToBuy(
ship,
shipyardPrices,
Expand Down

0 comments on commit ebbb217

Please sign in to comment.