2019-11-02 17:27:54 -05:00
|
|
|
from direct.directnotify import DirectNotifyGlobal
|
2019-12-30 00:07:56 -06:00
|
|
|
from . import HoodDataAI
|
2019-11-02 17:27:54 -05:00
|
|
|
from toontown.toonbase import ToontownGlobals
|
|
|
|
from toontown.safezone import DistributedTrolleyAI
|
|
|
|
from toontown.safezone import DLTreasurePlannerAI
|
|
|
|
from toontown.classicchars import DistributedDonaldAI
|
|
|
|
from toontown.safezone import ButterflyGlobals
|
|
|
|
|
|
|
|
class DLHoodDataAI(HoodDataAI.HoodDataAI):
|
|
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('DLHoodDataAI')
|
|
|
|
|
|
|
|
def __init__(self, air, zoneId=None):
|
|
|
|
hoodId = ToontownGlobals.DonaldsDreamland
|
|
|
|
if zoneId == None:
|
|
|
|
zoneId = hoodId
|
|
|
|
HoodDataAI.HoodDataAI.__init__(self, air, zoneId, hoodId)
|
|
|
|
return
|
|
|
|
|
|
|
|
def startup(self):
|
|
|
|
HoodDataAI.HoodDataAI.startup(self)
|
|
|
|
trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air)
|
|
|
|
trolley.generateWithRequired(self.zoneId)
|
|
|
|
trolley.start()
|
|
|
|
self.addDistObj(trolley)
|
|
|
|
self.treasurePlanner = DLTreasurePlannerAI.DLTreasurePlannerAI(self.zoneId)
|
|
|
|
self.treasurePlanner.start()
|
|
|
|
self.classicChar = DistributedDonaldAI.DistributedDonaldAI(self.air)
|
|
|
|
self.classicChar.generateWithRequired(self.zoneId)
|
|
|
|
self.classicChar.start()
|
|
|
|
self.addDistObj(self.classicChar)
|