From ebbb2178cd1a22e8f5bdc5cd417f196ae918e4a4 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Sat, 26 Aug 2023 16:21:53 +0000 Subject: [PATCH] Hack buyShip back to ore hound mode. --- packages/cli/lib/behavior/buy_ship.dart | 34 ++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/packages/cli/lib/behavior/buy_ship.dart b/packages/cli/lib/behavior/buy_ship.dart index f976f30d..935be8e4 100644 --- a/packages/cli/lib/behavior/buy_ship.dart +++ b/packages/cli/lib/behavior/buy_ship.dart @@ -169,24 +169,24 @@ Future _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,