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()
def startup(self): HoodDataAI.HoodDataAI.startup(self) trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air) trolley.generateWithRequired(self.zoneId) trolley.start() self.addDistObj(trolley) self.trolley = trolley self.treasurePlanner = TTTreasurePlannerAI.TTTreasurePlannerAI( self.zoneId) self.treasurePlanner.start() self.classicChar = DistributedMickeyAI.DistributedMickeyAI(self.air) self.classicChar.generateWithRequired(self.zoneId) self.classicChar.start() self.addDistObj(self.classicChar) self.ttcHQEventMgr = DistributedTTCHQEventMgrAI.DistributedTTCHQEventMgrAI( self.air) self.ttcHQEventMgr.generateWithRequired(self.zoneId) self.addDistObj(self.ttcHQEventMgr) if config.GetBool('want-special-zone-portal', True): self.specialZonePortal = DistributedSpecialZonePortalAI.DistributedSpecialZonePortalAI( self.air) self.specialZonePortal.generateWithRequired(self.zoneId) self.addDistObj(self.specialZonePortal) self.createButterflies(ButterflyGlobals.TTC) if simbase.blinkTrolley: taskMgr.doMethodLater(0.5, self._deleteTrolley, 'deleteTrolley') messenger.send('TTHoodSpawned', [self])
def createClassicChar(self): if simbase.air.wantHalloween: self.classicChar = DistributedVampireMickeyAI.DistributedVampireMickeyAI( self.air) else: self.classicChar = DistributedMickeyAI.DistributedMickeyAI( self.air) self.classicChar.generateWithRequired(self.zoneId) self.classicChar.start()
def createClassicChar(self): if ToontownGlobals.HALLOWEEN_COSTUMES in self.air.holidayManager.currentHolidays: self.classicChar = DistributedVampireMickeyAI.DistributedVampireMickeyAI( self.air) self.classicChar.generateWithRequired(self.zoneId) self.classicChar.start() else: self.classicChar = DistributedMickeyAI.DistributedMickeyAI( 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.trolley = trolley self.classicChar = DistributedMickeyAI.DistributedMickeyAI(self.air) self.classicChar.generateWithRequired(self.zoneId) self.classicChar.start() self.addDistObj(self.classicChar)
def startup(self): HoodDataAI.HoodDataAI.startup(self) trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air) trolley.generateWithRequired(self.zoneId) trolley.start() self.addDistObj(trolley) self.trolley = trolley self.treasurePlanner = TTTreasurePlannerAI.TTTreasurePlannerAI( self.zoneId) self.treasurePlanner.start() self.classicChar = DistributedMickeyAI.DistributedMickeyAI(self.air) self.classicChar.generateWithRequired(self.zoneId) self.classicChar.start() self.addDistObj(self.classicChar) self.createButterflies(ButterflyGlobals.TTC) if simbase.blinkTrolley: taskMgr.doMethodLater(0.5, self._deleteTrolley, 'deleteTrolley') messenger.send('TTHoodSpawned', [self])
def createClassicChar(self): self.classicChar = DistributedMickeyAI.DistributedMickeyAI(self.air) self.classicChar.generateWithRequired(self.zoneId) self.classicChar.start()