def startup(self): HoodDataAI.HoodDataAI.startup(self) if simbase.air.config.GetBool('create-chip-and-dale', 1): chip = DistributedChipAI.DistributedChipAI(self.air) chip.generateWithRequired(self.zoneId) chip.start() self.addDistObj(chip) dale = DistributedDaleAI.DistributedDaleAI(self.air, chip.doId) dale.generateWithRequired(self.zoneId) dale.start() self.addDistObj(dale) chip.setDaleId(dale.doId) self.treasurePlanner = OZTreasurePlannerAI.OZTreasurePlannerAI( self.zoneId) self.treasurePlanner.start() self.timer = DistributedTimerAI.DistributedTimerAI(self.air) self.timer.generateWithRequired(self.zoneId) # Modularizing the Starting Blocks into DNA ( needs work ) #self.createStartingBlocks() # create the picnic tables from the dna self.createPicnicTables() #Code Copy Paste, create game tables from dna if simbase.config.GetBool('want-game-tables', 0): self.createGameTables()
def startup(self): self.notify.info("Creating zone... Chip 'n Dale's Acorn Acres") HoodDataAI.HoodDataAI.startup(self) if simbase.config.GetBool('want-classic-chars', True): if simbase.config.GetBool('want-chip-and-dale', True): if simbase.air.config.GetBool('create-chip-and-dale', 1): if self.air.holidayManager.isHolidayRunning( ToontownGlobals.HALLOWEEN_COSTUMES): chip = DistributedPoliceChipAI.DistributedPoliceChipAI( self.air) else: chip = DistributedChipAI.DistributedChipAI(self.air) chip.generateWithRequired(self.zoneId) chip.start() self.addDistObj(chip) if self.air.holidayManager.isHolidayRunning( ToontownGlobals.HALLOWEEN_COSTUMES): dale = DistributedJailbirdDaleAI.DistributedJailbirdDaleAI( self.air, chip.doId) else: dale = DistributedDaleAI.DistributedDaleAI( self.air, chip.doId) dale.generateWithRequired(self.zoneId) dale.start() self.addDistObj(dale) chip.setDaleId(dale.doId) self.timer = DistributedTimerAI.DistributedTimerAI(self.air) self.timer.generateWithRequired(self.zoneId)
def createClassicChars(self): self.classicCharChip = DistributedChipAI.DistributedChipAI(self.air) self.classicCharChip.generateWithRequired(self.zoneId) self.classicCharChip.start() self.classicCharDale = DistributedDaleAI.DistributedDaleAI( self.air, self.classicCharChip.doId) self.classicCharDale.generateWithRequired(self.zoneId) self.classicCharDale.start() self.classicCharChip.setDaleId(self.classicCharDale.doId)
def createClassicChars(self): if simbase.air.wantHalloween: self.classicCharChip = DistributedPoliceChipAI.DistributedPoliceChipAI( self.air) else: self.classicCharChip = DistributedChipAI.DistributedChipAI( self.air) self.classicCharChip.generateWithRequired(self.zoneId) self.classicCharChip.start() if simbase.air.wantHalloween: self.classicCharDale = DistributedJailbirdDaleAI.DistributedJailbirdDaleAI( self.air, self.classicCharChip.doId) else: self.classicCharDale = DistributedDaleAI.DistributedDaleAI( self.air, self.classicCharChip.doId) self.classicCharDale.generateWithRequired(self.zoneId) self.classicCharDale.start() self.classicCharChip.setDaleId(self.classicCharDale.doId)
def startup(self): HoodDataAI.HoodDataAI.startup(self) if simbase.air.config.GetBool('create-chip-and-dale', 1): chip = DistributedChipAI.DistributedChipAI(self.air) chip.generateWithRequired(self.zoneId) chip.start() self.addDistObj(chip) dale = DistributedDaleAI.DistributedDaleAI(self.air, chip.doId) dale.generateWithRequired(self.zoneId) dale.start() self.addDistObj(dale) chip.setDaleId(dale.doId) self.treasurePlanner = OZTreasurePlannerAI.OZTreasurePlannerAI( self.zoneId) self.treasurePlanner.start() self.timer = DistributedTimerAI.DistributedTimerAI(self.air) self.timer.generateWithRequired(self.zoneId) self.createPicnicTables() if simbase.config.GetBool('want-game-tables', 0): self.createGameTables()
def createClassicChars(self): if ToontownGlobals.HALLOWEEN_COSTUMES in self.air.holidayManager.currentHolidays: self.classicCharChip = DistributedPoliceChipAI.DistributedPoliceChipAI( self.air) self.classicCharChip.generateWithRequired(self.zoneId) self.classicCharChip.start() self.classicCharDale = DistributedJailbirdDaleAI.DistributedJailbirdDaleAI( self.air, self.classicCharChip.doId) self.classicCharDale.generateWithRequired(self.zoneId) self.classicCharDale.start() self.classicCharChip.setDaleId(self.classicCharDale.doId) else: self.classicCharChip = DistributedChipAI.DistributedChipAI( self.air) self.classicCharChip.generateWithRequired(self.zoneId) self.classicCharChip.start() self.classicCharDale = DistributedDaleAI.DistributedDaleAI( self.air, self.classicCharChip.doId) self.classicCharDale.generateWithRequired(self.zoneId) self.classicCharDale.start() self.classicCharChip.setDaleId(self.classicCharDale.doId)
def createClassicChar(self): if simbase.air.holidayManager.isHolidayRunning(ToontownGlobals.HALLOWEEN_COSTUMES): self.classicCharChip = DistributedPoliceChipAI.DistributedPoliceChipAI(self.air) self.classicCharChip.setCurrentCostume(ToontownGlobals.HALLOWEEN_COSTUMES) # We're using holidayIDs as costume IDs. else: self.classicCharChip = DistributedChipAI.DistributedChipAI(self.air) self.classicCharChip.setCurrentCostume(ToontownGlobals.NO_COSTUMES) # We're using holidayIDs as costume IDs. self.classicCharChip.generateWithRequired(self.zoneId) self.classicCharChip.start() if simbase.air.holidayManager.isHolidayRunning(ToontownGlobals.HALLOWEEN_COSTUMES): self.classicCharDale = DistributedJailbirdDaleAI.DistributedJailbirdDaleAI(self.air, self.classicCharChip.doId) self.classicCharDale.setCurrentCostume(ToontownGlobals.HALLOWEEN_COSTUMES) # We're using holidayIDs as costume IDs. else: self.classicCharDale = DistributedDaleAI.DistributedDaleAI(self.air, self.classicCharChip.doId) self.classicCharDale.setCurrentCostume(ToontownGlobals.NO_COSTUMES) # We're using holidayIDs as costume IDs. self.classicCharDale.generateWithRequired(self.zoneId) self.classicCharDale.start() self.classicCharChip.setDaleId(self.classicCharDale.doId)