Skip to content

Commit

Permalink
doc: add comment about selling by value
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel committed Sep 29, 2023
1 parent 2dd9d28 commit 0a71682
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/lib/behavior/miner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ Future<JobResult> sellCargoIfNeeded(
Ship ship, {
DateTime Function() getNow = defaultGetNow,
}) async {
// This picks largest, but maybe should pick most valuable?
final largestCargo = ship.largestCargo();
if (largestCargo == null) {
return JobResult.complete();
Expand Down

0 comments on commit 0a71682

Please sign in to comment.