def createFoodBelts(self): if self.foodBelts: return for i in xrange(2): newBelt = DistributedFoodBeltAI.DistributedFoodBeltAI(self.air, self, i) self.foodBelts.append(newBelt) newBelt.generateWithRequired(self.zoneId)
def createFoodBelts(self): """Create the conveyer belts that bring the food out.""" if self.foodBelts: # using ~bossBattle, don't make them twice return for i in range(2): newBelt = DistributedFoodBeltAI.DistributedFoodBeltAI(self.air, self, i) self.foodBelts.append(newBelt) newBelt.generateWithRequired(self.zoneId)