diff options
author | Julien Dessaux | 2024-03-15 22:17:10 +0100 |
---|---|---|
committer | Julien Dessaux | 2024-03-15 22:17:10 +0100 |
commit | 01e3f05ea0d4360cb85de67928c7b5bd9ed48742 (patch) | |
tree | 1f104f229010a59800a9e7e72243e1ad3418fd50 /nodejs/lib/ships.js | |
parent | [javascript] updated dependencies (diff) | |
download | spacetraders-01e3f05ea0d4360cb85de67928c7b5bd9ed48742.tar.gz spacetraders-01e3f05ea0d4360cb85de67928c7b5bd9ed48742.tar.bz2 spacetraders-01e3f05ea0d4360cb85de67928c7b5bd9ed48742.zip |
[javascript] Rework the contracting loop following the asteroids changes
Diffstat (limited to 'nodejs/lib/ships.js')
-rw-r--r-- | nodejs/lib/ships.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nodejs/lib/ships.js b/nodejs/lib/ships.js index eb59013..f6cb027 100644 --- a/nodejs/lib/ships.js +++ b/nodejs/lib/ships.js @@ -5,7 +5,7 @@ import * as systems from '../lib/systems.js'; export async function extract(ctx) { const ship = dbShips.getShip(ctx.symbol); - const asteroidFields = await systems.type({symbol: ship.nav.systemSymbol, type: 'ASTEROID_FIELD'}); + const asteroidFields = await systems.type({symbol: ship.nav.systemSymbol, type: 'ENGINEERED_ASTEROID'}); // TODO if there are multiple fields, find the closest one? await navigate({symbol: ctx.symbol, waypoint: asteroidFields[0].symbol}); await orbit(ctx); |