diff options
author | Julien Dessaux | 2023-06-01 01:11:21 +0200 |
---|---|---|
committer | Julien Dessaux | 2023-06-01 01:11:21 +0200 |
commit | 68c457964a02d290f3fe225b090c549d664bb836 (patch) | |
tree | 4b63ee97f5439621536594c59f25b1c35c353b37 /automation/contracting.js | |
parent | Reworked the systems handling and caching with sqlite (diff) | |
download | spacetraders-68c457964a02d290f3fe225b090c549d664bb836.tar.gz spacetraders-68c457964a02d290f3fe225b090c549d664bb836.tar.bz2 spacetraders-68c457964a02d290f3fe225b090c549d664bb836.zip |
Another big refactoring
Diffstat (limited to '')
-rw-r--r-- | automation/contracting.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/automation/contracting.js b/automation/contracting.js index aebb265..b5c7292 100644 --- a/automation/contracting.js +++ b/automation/contracting.js @@ -34,14 +34,14 @@ export async function auto(ctx) { await ships.navigate({ship: ctx.ship, waypoint: deliveryPoint}); break; case deliveryPoint: - await ships.dock({ship: ctx.ship}); + await ships.dock({symbol: ctx.ship}); await ships.refuel({ship: ctx.ship}); console.log(`delivering ${goodCargo.units} of ${good}`); await contracts.deliver({contract: contract.id, ship: ctx.ship, good: good, units: goodCargo.units }); await ships.navigate({ship: ctx.ship, waypoint: asteroidField}); - await ships.dock({ship: ctx.ship}); + await ships.dock({symbol: ctx.ship}); await ships.refuel({ship: ctx.ship}); - await ships.orbit({ship: ctx.ship}); + await ships.orbit({symbol: ctx.ship}); break; default: throw `where is the ship?`; |