From 18053095b39ae06c52656468d96cc7789b81f3ee Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Sat, 30 Sep 2023 20:54:36 +0000 Subject: [PATCH] fix: only require one surveyor_ii to let other ships mine-only --- packages/cli/lib/behavior/miner.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/cli/lib/behavior/miner.dart b/packages/cli/lib/behavior/miner.dart index af118e52..9a988863 100644 --- a/packages/cli/lib/behavior/miner.dart +++ b/packages/cli/lib/behavior/miner.dart @@ -73,8 +73,10 @@ class MiningSquad { return kMineAndSurveyTemplate; } } - // If our first ship has already mounted surveyors, we should only mine. - if (kSurveyOnlyTemplate.matches(surveyor)) { + // If our first ship has already mounted at least one surveyor, we should + // only mine. + if (surveyor.mountedMountSymbols + .contains(ShipMountSymbolEnum.SURVEYOR_II)) { return kMineOnlyTemplate; } // Otherwise we also need to survey.