Update commander.py

This commit is contained in:
Richard Bronkhorst 2023-07-16 21:01:00 +02:00
parent 1f4a1a48de
commit e0f73f837b

View File

@ -55,6 +55,7 @@ class Commander(CommandLine):
def agent_setup(self): def agent_setup(self):
symbol = input('agent name: ') symbol = input('agent name: ')
agent = self.store.get(Agent, symbol, create=True) agent = self.store.get(Agent, symbol, create=True)
self.agent = agent
api = Api(self.store, agent) api = Api(self.store, agent)
self.api = api self.api = api
faction = input('faction: ') faction = input('faction: ')
@ -65,8 +66,8 @@ class Commander(CommandLine):
self.do_ships('r') self.do_ships('r')
print('=== contracts') print('=== contracts')
self.do_contracts('r') self.do_contracts('r')
print('=== waypoints') ship = self.store.get(Ship, symbol.upper() + '-2')
self.do_waypoints() api.list_waypoints(ship.location.system)
self.store.flush() self.store.flush()
return agent return agent