def _createTrolley(self, task): trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air) trolley.generateWithRequired(self.zoneId) trolley.start() self.trolley = trolley taskMgr.doMethodLater(0.5, self._deleteTrolley, 'deleteTrolley') return Task.done
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 startup(self): HoodDataAI.HoodDataAI.startup(self) trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air) trolley.generateWithRequired(self.zoneId) trolley.start() self.addDistObj(trolley) self.treasurePlanner = FFTreasurePlannerAI.FFTreasurePlannerAI(self.zoneId) self.treasurePlanner.start()
def startup(self): self.notify.info("Creating zone... Donald's Dock") HoodDataAI.HoodDataAI.startup(self) trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air) trolley.generateWithRequired(self.zoneId) self.addDistObj(trolley) boat = DistributedBoatAI.DistributedBoatAI(self.air) boat.generateWithRequired(self.zoneId) self.addDistObj(boat)
def startup(self): self.notify.info('Creating zone... The Brrrgh') HoodDataAI.HoodDataAI.startup(self) trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air) trolley.generateWithRequired(self.zoneId) self.addDistObj(trolley) if self.air.holidayManager.isHolidayRunning(ToontownGlobals.POLAR_PLACE_EVENT): self.polarPlaceEffectManager = DistributedPolarPlaceEffectMgrAI.DistributedPolarPlaceEffectMgrAI(self.air) self.polarPlaceEffectManager.generateWithRequired(3821)
def startup(self): self.notify.info("Creating zone... Donald's Dreamland") HoodDataAI.HoodDataAI.startup(self) trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air) trolley.generateWithRequired(self.zoneId) self.addDistObj(trolley) if self.air.holidayManager.isHolidayRunning( ToontownGlobals.RESISTANCE_EVENT): self.resistanceEmoteMgr = DistributedResistanceEmoteMgrAI(self.air) self.resistanceEmoteMgr.generateWithRequired(9720)
def startup(self): self.notify.info('Creating zone... Daisy Gardens') HoodDataAI.HoodDataAI.startup(self) trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air) trolley.generateWithRequired(self.zoneId) self.addDistObj(trolley) flower = DistributedDGFlowerAI.DistributedDGFlowerAI(self.air) flower.generateWithRequired(self.zoneId) self.addDistObj(flower) self.createButterflies(ButterflyGlobals.DG)
def startup(self): HoodDataAI.HoodDataAI.startup(self) trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air) trolley.generateWithRequired(self.zoneId) trolley.start() self.addDistObj(trolley) if simbase.config.GetBool('want-classic-chars', True): if simbase.config.GetBool('want-donald-dreamland', True): self.createClassicChar() self.treasurePlanner = DLTreasurePlannerAI.DLTreasurePlannerAI(self.zoneId) self.treasurePlanner.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 = DistributedGoofyAI.DistributedGoofyAI(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.treasurePlanner = BRTreasurePlannerAI.BRTreasurePlannerAI(self.zoneId) self.treasurePlanner.start() self.classicChar = DistributedPlutoAI.DistributedPlutoAI(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.treasurePlanner = MMTreasurePlannerAI.MMTreasurePlannerAI( self.zoneId) self.treasurePlanner.start() if simbase.config.GetBool('want-classic-chars', True): if simbase.config.GetBool('want-minnie', True): self.createClassicChar() piano = DistributedMMPianoAI.DistributedMMPianoAI(self.air) piano.generateWithRequired(self.zoneId) self.addDistObj(piano)
def startup(self): HoodDataAI.HoodDataAI.startup(self) trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air) trolley.generateWithRequired(self.zoneId) trolley.start() self.addDistObj(trolley) self.treasurePlanner = DDTreasurePlannerAI.DDTreasurePlannerAI(self.zoneId) self.treasurePlanner.start() boat = DistributedBoatAI.DistributedBoatAI(self.air) boat.generateWithRequired(self.zoneId) boat.start() self.addDistObj(boat) self.classicChar = DistributedDonaldDockAI.DistributedDonaldDockAI(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.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 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.createButterflies(ButterflyGlobals.TTC) if simbase.config.GetBool('want-classic-chars', True): if simbase.config.GetBool('want-mickey', False): self.createClassicChar() if simbase.blinkTrolley: taskMgr.doMethodLater(0.5, self._deleteTrolley, 'deleteTrolley') messenger.send('TTHoodSpawned', [self])
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() if simbase.config.GetBool('want-classic-chars', True): if simbase.config.GetBool('want-daisy', True): self.createClassicChar() flower = DistributedDGFlowerAI.DistributedDGFlowerAI(self.air) flower.generateWithRequired(self.zoneId) self.addDistObj(flower) self.createButterflies(ButterflyGlobals.DG)
def startup(self): self.notify.info('Creating zone... Toontown Central') HoodDataAI.HoodDataAI.startup(self) trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air) trolley.generateWithRequired(self.zoneId) self.addDistObj(trolley) self.trolley = trolley if self.air.holidayManager.isHolidayRunning(ToontownGlobals.HALLOWEEN): self.createPumpkinCog() else: self.acceptOnce(('holidayStart-{0}').format(ToontownGlobals.HALLOWEEN), self.createPumpkinCog) if self.air.holidayManager.isHolidayRunning(ToontownGlobals.WINTER_DECORATIONS): self.createPresents() else: self.acceptOnce(('holidayStart-{0}').format(ToontownGlobals.WINTER_DECORATIONS), self.createPresents) self.createButterflies(ButterflyGlobals.TTC) if self.air.config.GetBool('want-doomsday', False) or self.air.config.GetBool('want-election-buildup', False): self.spawnElection() if simbase.blinkTrolley: taskMgr.doMethodLater(0.5, self._deleteTrolley, 'deleteTrolley') messenger.send('TTHoodSpawned', [self])
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(.5, self._deleteTrolley, 'deleteTrolley') messenger.send("TTHoodSpawned", [self])
def createTrolley(self): self.trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air) self.trolley.generateWithRequired(self.zoneId) self.trolley.start()
def startup(self): self.notify.info("Creating zone... Minnie's Melodyland") HoodDataAI.HoodDataAI.startup(self) trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air) trolley.generateWithRequired(self.zoneId) self.addDistObj(trolley)