summaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorJulien Dessaux2023-06-02 00:00:09 +0200
committerJulien Dessaux2023-06-02 00:00:09 +0200
commit7008c91c6fb74f7106c4d9903849d3f1fc17b2f1 (patch)
treea180768c196025bb4b4e5b27c81a3e1a521bb40d /main.js
parentAnother big refactoring (diff)
downloadspacetraders-7008c91c6fb74f7106c4d9903849d3f1fc17b2f1.tar.gz
spacetraders-7008c91c6fb74f7106c4d9903849d3f1fc17b2f1.tar.bz2
spacetraders-7008c91c6fb74f7106c4d9903849d3f1fc17b2f1.zip
Improved ships lib with ships db caching
Diffstat (limited to '')
-rwxr-xr-xmain.js16
1 files changed, 5 insertions, 11 deletions
diff --git a/main.js b/main.js
index 8e80c58..61a1ab8 100755
--- a/main.js
+++ b/main.js
@@ -54,9 +54,6 @@ default:
case 'ships.dock':
api.debugLog(await ships.dock({symbol: process.argv[3]}));
break;
- case 'ships.extract':
- api.debugLog(await ships.extract({ship: process.argv[3]}));
- break;
case 'ships.jump':
api.debugLog(await ships.jump({ship: process.argv[3], system: process.argv[4]}));
break;
@@ -64,14 +61,11 @@ default:
// api.send({endpoint: `/systems/${process.argv[3]}/waypoints/${process.argv[4]}/market`});
// break;
case 'ships.navigate':
- api.debugLog(await ships.navigate({ship: process.argv[3], waypoint: process.argv[4]}));
+ api.debugLog(await ships.navigate({symbol: process.argv[3], waypoint: process.argv[4]}));
break;
case 'ships.negotiate':
api.debugLog(await ships.negotiate({ship: process.argv[3]}));
break;
- case 'ships.navigate':
- api.debugLog(await ships.navigate({ship: process.argv[3], waypoint: process.argv[4]}));
- break;
case 'ships.orbit':
api.debugLog(await ships.orbit({symbol: process.argv[3]}));
break;
@@ -79,16 +73,16 @@ default:
api.debugLog(await ships.purchase({shipType: process.argv[3], waypoint: process.argv[4]}));
break;
case 'ships.refuel':
- api.debugLog(await ships.refuel({ship: process.argv[3]}));
+ api.debugLog(await ships.refuel({symbol: process.argv[3]}));
break;
case 'ships.sell':
- api.debugLog(await ships.sell({ship: process.argv[3], good: process.argv[4], units: process.argv[5]}));
+ api.debugLog(await ships.sell({symbol: process.argv[3], good: process.argv[4], units: process.argv[5]}));
break;
case 'ships.ship':
- api.debugLog(await ships.ship({ship: process.argv[3]}));
+ api.debugLog(await ships.ship({symbol: process.argv[3]}));
break;
case 'ships.survey':
- api.debugLog(await ships.survey({ship: process.argv[3]}));
+ api.debugLog(await ships.survey({symbol: process.argv[3]}));
break;
case 'systems.asteroids':
api.debugLog(await systems.type({symbol: process.argv[3], type: 'ASTEROID_FIELD'}));