Example #1
0
	def _on_production_change(self):
		super(MineProducer, self)._on_production_change()
		if self._get_current_state() == PRODUCTION.STATES.waiting_for_res:
			# this is never going to change, the building is useless now.
			if self.is_active():
				self.set_active(active=False)
			MineEmpty.broadcast(self, self.instance)
Example #2
0
 def _on_production_change(self):
     super(MineProducer, self)._on_production_change()
     if self._get_current_state() == PRODUCTION.STATES.waiting_for_res:
         # this is never going to change, the building is useless now.
         if self.is_active():
             self.set_active(active=False)
         MineEmpty.broadcast(self, self.instance)