Poodletooth-iLand/toontown/hood/DLHoodAI.py

42 lines
1.6 KiB
Python
Raw Normal View History

2015-03-03 16:10:12 -06:00
from toontown.hood import HoodAI
from toontown.safezone import DistributedTrolleyAI, DistributedPillowAI
2015-03-03 16:10:12 -06:00
from toontown.toonbase import ToontownGlobals
from toontown.ai import DistributedResistanceEmoteMgrAI
2015-06-23 15:20:41 -05:00
from toontown.ai import DistributedEffectMgrAI
2015-03-03 16:10:12 -06:00
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()
2015-06-23 15:20:41 -05:00
2015-03-03 16:10:12 -06:00
self.resistanceEmoteManager = DistributedResistanceEmoteMgrAI.DistributedResistanceEmoteMgrAI(self.air)
self.resistanceEmoteManager.generateWithRequired(9720)
2015-06-10 21:20:40 -05:00
self.trickOrTreatMgr = DistributedEffectMgrAI.DistributedEffectMgrAI(self.air, ToontownGlobals.HALLOWEEN, 12)
2015-06-23 15:20:41 -05:00
self.trickOrTreatMgr.generateWithRequired(9619) # Relax to the Max, Lullaby Lane
2015-07-05 18:59:25 -05:00
self.winterCarolingMgr = DistributedEffectMgrAI.DistributedEffectMgrAI(self.air, ToontownGlobals.CHRISTMAS, 14)
2015-06-23 15:20:41 -05:00
self.winterCarolingMgr.generateWithRequired(9722) # Dream On Talent Agency, Pajama Place
2015-03-03 16:10:12 -06:00
self.createPillow()
2015-03-03 16:10:12 -06:00
def createTrolley(self):
self.trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air)
self.trolley.generateWithRequired(self.zoneId)
self.trolley.start()
def createPillow(self):
self.pillow = DistributedPillowAI.DistributedPillowAI(self.air)
2015-07-05 18:59:25 -05:00
self.pillow.generateWithRequired(self.zoneId)