From e0f73f837b21e2f9118f5d52f5b11aa6e3d2cf44 Mon Sep 17 00:00:00 2001 From: Richard Bronkhorst Date: Sun, 16 Jul 2023 21:01:00 +0200 Subject: [PATCH] Update commander.py --- nullptr/commander.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nullptr/commander.py b/nullptr/commander.py index c54fd40..a2c3069 100644 --- a/nullptr/commander.py +++ b/nullptr/commander.py @@ -55,6 +55,7 @@ class Commander(CommandLine): def agent_setup(self): symbol = input('agent name: ') agent = self.store.get(Agent, symbol, create=True) + self.agent = agent api = Api(self.store, agent) self.api = api faction = input('faction: ') @@ -65,8 +66,8 @@ class Commander(CommandLine): self.do_ships('r') print('=== contracts') self.do_contracts('r') - print('=== waypoints') - self.do_waypoints() + ship = self.store.get(Ship, symbol.upper() + '-2') + api.list_waypoints(ship.location.system) self.store.flush() return agent