Skip to content

Commit

Permalink
feat: re-enable asteroid charting
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel committed Dec 14, 2023
1 parent 384c24f commit 9816564
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/lib/behavior/central_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ class CentralCommand {
ship,
startSystemSymbol: ship.systemSymbol,
filter: (SystemWaypoint waypoint) {
// Don't bother charting Asteroids for now.
if (waypoint.isAsteroid) {
// Don't bother charting Asteroids if disabled.
if (!config.chartAsteroids && waypoint.isAsteroid) {
return false;
}
// Don't visit systems we already have a charter in.
Expand Down
3 changes: 3 additions & 0 deletions packages/cli/lib/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ class Config {
final knownBadGates = <String>{
'X1-RJ35-CF7C',
}.map(WaypointSymbol.fromString);

/// Should charters chart asteroids?
final chartAsteroids = true;
}

/// Our global configuration object.
Expand Down

0 comments on commit 9816564

Please sign in to comment.