Example #1
0
	def commit_result(self, success, new_id):
		if not success:
			return
			
		store.update_object('fleet', {'fleet_id':self.fleet_id}, {'fleet_id':new_id})
		store.update_object('flying_fleet', {'fleet_id':self.fleet_id}, {'fleet_id':new_id})
		store.update_object('fleet_unit', {'fleet_id':self.fleet_id}, {'fleet_id':new_id})
		self.fleet_id = new_id
Example #2
0
	def commit_result(self, success, new_id):
		if not success:
			return
			
		store.update_object('garrison_queue_unit', {'unit_id':self.fleet_id}, {'unit_id':new_id})
		self.fleet_id = new_id