summaryrefslogtreecommitdiff
path: root/nodejs/automation
diff options
context:
space:
mode:
authorJulien Dessaux2024-05-23 23:49:42 +0200
committerJulien Dessaux2024-05-23 23:49:42 +0200
commit330615936955f464a17aa0b7e39fb04d3f074b06 (patch)
treef742fa990b47a5226c18446407b8de5c619c6363 /nodejs/automation
parent[node] implement ship purchasing (diff)
downloadspacetraders-330615936955f464a17aa0b7e39fb04d3f074b06.tar.gz
spacetraders-330615936955f464a17aa0b7e39fb04d3f074b06.tar.bz2
spacetraders-330615936955f464a17aa0b7e39fb04d3f074b06.zip
[node] factorize sortByPrice
Diffstat (limited to 'nodejs/automation')
-rw-r--r--nodejs/automation/selling.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/nodejs/automation/selling.ts b/nodejs/automation/selling.ts
index b17aad0..df9a92b 100644
--- a/nodejs/automation/selling.ts
+++ b/nodejs/automation/selling.ts
@@ -7,7 +7,7 @@ import {
} from '../lib/utils.ts';
import { Ship } from '../lib/ships.ts';
-// example ctx { ship: {XXX}, keep: 'SILVER_ORE' }
+// example ctx { ship: {XXX}, good: 'SILVER_ORE' }
export async function sell(ship: Ship, good: string): Promise<Ship> {
outer: while(true) {
const waypoint = await libSystems.waypoint(ship.nav.waypointSymbol);