Update central_command.py and mission.py

This commit is contained in:
Richard Bronkhorst 2023-06-18 20:02:33 +02:00
parent 8b29ca8f58
commit 9369c6982f
2 changed files with 4 additions and 1 deletions

View File

@ -82,6 +82,9 @@ class CentralCommand:
self.stop_mission(s)
elif s not in self.missions:
self.start_mission(s)
if s in self.missions:
m = self.missions[s]
m.next_step = max(s.cooldown, s.arrival)
def start_mission(self, s):
mtype = s.mission

View File

@ -188,7 +188,7 @@ class MiningMission(Mission):
def step_sell(self, except_resource=True):
target = self.st('resource')
market = self.api.market(self.ship.location)
market = self.store.get('Marketplace', self.ship.location())
sellables = market.sellable_items(self.ship.cargo.keys())
if target in sellables and except_resource:
sellables.remove(target)