dg: Add butterflies and flower back.
This commit is contained in:
parent
4fb8e64e66
commit
ee96def327
1 changed files with 15 additions and 1 deletions
|
@ -10,5 +10,19 @@ class DGHoodAI(SZHoodAI):
|
|||
|
||||
def createZone(self):
|
||||
SZHoodAI.createZone(self)
|
||||
|
||||
self.butterflies = []
|
||||
self.spawnObjects()
|
||||
|
||||
self.flower = DistributedDGFlowerAI(self.air)
|
||||
self.flower.generateWithRequired(self.HOOD)
|
||||
self.createButterflies()
|
||||
|
||||
def createButterflies(self):
|
||||
playground = ButterflyGlobals.DG
|
||||
for area in range(ButterflyGlobals.NUM_BUTTERFLY_AREAS[playground]):
|
||||
for b in range(ButterflyGlobals.NUM_BUTTERFLIES[playground]):
|
||||
butterfly = DistributedButterflyAI(self.air)
|
||||
butterfly.setArea(playground, area)
|
||||
butterfly.setState(0, 0, 0, 1, 1)
|
||||
butterfly.generateWithRequired(self.HOOD)
|
||||
self.butterflies.append(butterfly)
|
||||
|
|
Loading…
Reference in a new issue