Пример #1
0
    def createClassicChar(self, test=None):
        if simbase.air.holidayManager.isHolidayRunning(
                ToontownGlobals.HALLOWEEN_COSTUMES):
            self.classicChar = DistributedSockHopDaisyAI.DistributedSockHopDaisyAI(
                self.air)
            self.classicChar.setCurrentCostume(
                ToontownGlobals.HALLOWEEN_COSTUMES
            )  # We're using holidayIDs as costume IDs.

        elif simbase.air.holidayManager.isHolidayRunning(
                ToontownGlobals.APRIL_FOOLS_COSTUMES):
            self.classicChar = DistributedMickeyAI.DistributedMickeyAI(
                self.air)
            self.classicChar.setCurrentCostume(
                ToontownGlobals.APRIL_FOOLS_COSTUMES
            )  # We're using holidayIDs as costume IDs.

        else:
            self.classicChar = DistributedDaisyAI.DistributedDaisyAI(self.air)
            self.classicChar.setCurrentCostume(
                ToontownGlobals.NO_COSTUMES
            )  # We're using holidayIDs as costume IDs.

        self.classicChar.generateWithRequired(self.zoneId)
        self.classicChar.start()
Пример #2
0
 def createClassicChar(self):
     if simbase.air.wantHalloween:
         self.classicChar = DistributedSockHopDaisyAI.DistributedSockHopDaisyAI(
             self.air)
     else:
         self.classicChar = DistributedDaisyAI.DistributedDaisyAI(self.air)
     self.classicChar.generateWithRequired(self.zoneId)
     self.classicChar.start()
 def createClassicChar(self):
     if ToontownGlobals.HALLOWEEN_COSTUMES in self.air.holidayManager.currentHolidays:
         self.classicChar = DistributedSockHopDaisyAI.DistributedSockHopDaisyAI(
             self.air)
         self.classicChar.generateWithRequired(self.zoneId)
         self.classicChar.start()
     else:
         self.classicChar = DistributedDaisyAI.DistributedDaisyAI(self.air)
         self.classicChar.generateWithRequired(self.zoneId)
         self.classicChar.start()
 def startup(self):
     HoodDataAI.HoodDataAI.startup(self)
     trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air)
     trolley.generateWithRequired(self.zoneId)
     trolley.start()
     self.addDistObj(trolley)
     self.treasurePlanner = DGTreasurePlannerAI.DGTreasurePlannerAI(self.zoneId)
     self.treasurePlanner.start()
     self.classicChar = DistributedDaisyAI.DistributedDaisyAI(self.air)
     self.classicChar.generateWithRequired(self.zoneId)
     self.classicChar.start()
     self.addDistObj(self.classicChar)
     flower = DistributedDGFlowerAI.DistributedDGFlowerAI(self.air)
     flower.generateWithRequired(self.zoneId)
     flower.start()
     self.addDistObj(flower)
     self.createButterflies(ButterflyGlobals.DG)
 def createClassicChar(self):
     self.classicChar = DistributedDaisyAI.DistributedDaisyAI(self.air)
     self.classicChar.generateWithRequired(self.zoneId)
     self.classicChar.start()