1
0
Fork 0

[node] factorize sortByPrice

This commit is contained in:
Julien Dessaux 2024-05-23 23:49:42 +02:00
parent 09537408a5
commit 3306159369
Signed by: adyxax
GPG key ID: F92E51B86E07177E
3 changed files with 21 additions and 9 deletions

View file

@ -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);