35 lines
No EOL
1.4 KiB
Python
35 lines
No EOL
1.4 KiB
Python
from toontown.hood import HoodAI
|
|
from toontown.safezone import DistributedTrolleyAI
|
|
from toontown.toonbase import ToontownGlobals
|
|
from toontown.ai import DistributedResistanceEmoteMgrAI
|
|
from toontown.ai import DistributedEffectMgrAI
|
|
|
|
class DLHoodAI(HoodAI.HoodAI):
|
|
def __init__(self, air):
|
|
HoodAI.HoodAI.__init__(self, air,
|
|
ToontownGlobals.DonaldsDreamland,
|
|
ToontownGlobals.DonaldsDreamland)
|
|
|
|
self.trolley = None
|
|
|
|
self.startup()
|
|
|
|
def startup(self):
|
|
HoodAI.HoodAI.startup(self)
|
|
|
|
if simbase.config.GetBool('want-minigames', True):
|
|
self.createTrolley()
|
|
|
|
self.resistanceEmoteManager = DistributedResistanceEmoteMgrAI.DistributedResistanceEmoteMgrAI(self.air)
|
|
self.resistanceEmoteManager.generateWithRequired(9720)
|
|
|
|
self.trickOrTreatMgr = DistributedEffectMgrAI.DistributedEffectMgrAI(self.air, ToontownGlobals.HALLOWEEN, 12)
|
|
self.trickOrTreatMgr.generateWithRequired(9619) # Relax to the Max, Lullaby Lane
|
|
|
|
self.winterCarolingMgr = DistributedEffectMgrAI.DistributedEffectMgrAI(self.air, ToontownGlobals.CHRISTMAS, 14)
|
|
self.winterCarolingMgr.generateWithRequired(9722) # Dream On Talent Agency, Pajama Place
|
|
|
|
def createTrolley(self):
|
|
self.trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air)
|
|
self.trolley.generateWithRequired(self.zoneId)
|
|
self.trolley.start() |