Update api.py, commander.py and one other file
This commit is contained in:
parent
e5c384caa9
commit
1f4a1a48de
@ -235,7 +235,7 @@ class Api:
|
|||||||
return ship
|
return ship
|
||||||
|
|
||||||
def shipyard(self, wp):
|
def shipyard(self, wp):
|
||||||
return self.request('get', f'systems/{wp.system()}/waypoints/{wp}/shipyard')
|
return self.request('get', f'systems/{wp.system}/waypoints/{wp}/shipyard')
|
||||||
|
|
||||||
def extract(self, ship, survey=None):
|
def extract(self, ship, survey=None):
|
||||||
data = {}
|
data = {}
|
||||||
|
@ -65,6 +65,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')
|
||||||
|
self.do_waypoints()
|
||||||
self.store.flush()
|
self.store.flush()
|
||||||
return agent
|
return agent
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ class BaseMission(Mission):
|
|||||||
|
|
||||||
def step_sell(self, except_resource=True):
|
def step_sell(self, except_resource=True):
|
||||||
target = self.st('resource')
|
target = self.st('resource')
|
||||||
market = self.store.get('Marketplace', self.ship.location_str)
|
market = self.store.get('Marketplace', self.ship.location.symbol)
|
||||||
sellables = market.sellable_items(self.ship.cargo.keys())
|
sellables = market.sellable_items(self.ship.cargo.keys())
|
||||||
if target in sellables and except_resource:
|
if target in sellables and except_resource:
|
||||||
sellables.remove(target)
|
sellables.remove(target)
|
||||||
|
Loading…
Reference in New Issue
Block a user