From 68c457964a02d290f3fe225b090c549d664bb836 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 1 Jun 2023 01:11:21 +0200 Subject: Another big refactoring --- automation/mining.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'automation/mining.js') diff --git a/automation/mining.js b/automation/mining.js index bdd89ac..a719bff 100644 --- a/automation/mining.js +++ b/automation/mining.js @@ -13,13 +13,13 @@ export async function mineUntilFullOf(ctx) { if (good?.units + (antimatter?.units ?? 0) >= response.data.cargo.capacity * 0.9) { // > 90% full of the valuable goods return good.units; } else { // we are full but need to sell junk - await ships.dock({ship: ctx.ship}); + await ships.dock({symbol: ctx.ship}); for (let i=0; i= response.data.cargo.capacity * 0.9) return response; } } + +// TODO surveying the asteroid field -- cgit v1.2.3