diff --git a/packages/cli/lib/behavior/central_command.dart b/packages/cli/lib/behavior/central_command.dart index 12a4c6bd..b6c49215 100644 --- a/packages/cli/lib/behavior/central_command.dart +++ b/packages/cli/lib/behavior/central_command.dart @@ -132,6 +132,7 @@ class CentralCommand { // We'll always upgrade a ship as our best option. if (shouldBuyMount(ship, credits)) { final request = _takeMountRequest(ship); + shipInfo(ship, 'Starting buy mount ${request.mountSymbol}'); return BehaviorState(ship.shipSymbol, Behavior.mountFromBuy) ..buyJob = request.buyJob ..mountJob = request.mountJob; @@ -488,15 +489,17 @@ class CentralCommand { /// Returns true if [ship] should start the mountFromBuy behavior. bool shouldBuyMount(Ship ship, int credits) { - // Are there any other ships actively buying mounts? - final otherShipsAreBuyingMounts = _behaviorCache.states.any( - (s) => s.behavior == Behavior.mountFromBuy, - ); // Only enforce the "one at a time" when we have less than 10M credits. // The 10M is mostly a hack to allow deploying changes to mounts quickly // late game. - if (credits < 10000000 || otherShipsAreBuyingMounts) { - return false; + if (credits < 10000000) { + // Are there any other ships actively buying mounts? + final otherShipsAreBuyingMounts = _behaviorCache.states.any( + (s) => s.behavior == Behavior.mountFromBuy, + ); + if (otherShipsAreBuyingMounts) { + return false; + } } // Does this ship have a mount it needs? final mountRequest =