Update central_command.py and mission.py
This commit is contained in:
		
							parent
							
								
									8b29ca8f58
								
							
						
					
					
						commit
						9369c6982f
					
				| @ -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 | ||||
|  | ||||
| @ -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) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Richard Bronkhorst
						Richard Bronkhorst