diff --git a/README.md b/README.md index 54ccecab..88f4503a 100644 --- a/README.md +++ b/README.md @@ -704,4 +704,22 @@ zero cost, at some amount of time to produce? ### No debugging tools for surveys. -Write a tool to list how many surveys deep we have? \ No newline at end of file +Write a tool to list how many surveys deep we have? + + +### Optimize requests: + +^CRequest stats: +6508 /my/ships/N/navigate +6323 /my/ships/N/dock +6322 /my/ships/N/orbit +5797 /my/ships/N/sell +5753 /my/ships/N/extract/survey +3118 /my/ships/N/refuel +2522 /systems/N/waypoints/N/market +1422 /my/ships/N/survey +756 /my/ships/N/jump +677 /my/ships/N/purchase +122 /systems/N/waypoints/N/shipyard +36 /my/ships +29 /systems/N/waypoints \ No newline at end of file diff --git a/packages/cli/lib/behavior/central_command.dart b/packages/cli/lib/behavior/central_command.dart index b6c49215..dc3c3bf3 100644 --- a/packages/cli/lib/behavior/central_command.dart +++ b/packages/cli/lib/behavior/central_command.dart @@ -341,6 +341,11 @@ class CentralCommand { if (_mountRequests.any((m) => m.shipSymbol == ship.shipSymbol)) { return; } + // Don't queue a new mount request if we're currently executing one. + if (_behaviorCache.getBehavior(ship.shipSymbol)?.behavior == + Behavior.mountFromBuy) { + continue; + } final template = templateForShip(ship); if (template == null) { continue;