Skip to content

Commit

Permalink
fix: only require one surveyor_ii to let other ships mine-only
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel committed Sep 30, 2023
1 parent dc05e01 commit 1805309
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/cli/lib/behavior/miner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1805309

Please sign in to comment.