summaryrefslogtreecommitdiff
path: root/automation/contracting.js
diff options
context:
space:
mode:
authorJulien Dessaux2023-06-01 01:11:21 +0200
committerJulien Dessaux2023-06-01 01:11:21 +0200
commit68c457964a02d290f3fe225b090c549d664bb836 (patch)
tree4b63ee97f5439621536594c59f25b1c35c353b37 /automation/contracting.js
parentReworked the systems handling and caching with sqlite (diff)
downloadspacetraders-68c457964a02d290f3fe225b090c549d664bb836.tar.gz
spacetraders-68c457964a02d290f3fe225b090c549d664bb836.tar.bz2
spacetraders-68c457964a02d290f3fe225b090c549d664bb836.zip
Another big refactoring
Diffstat (limited to 'automation/contracting.js')
-rw-r--r--automation/contracting.js6
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?`;