2015-03-03 16:10:12 -06:00
|
|
|
from toontown.hood import HoodAI
|
|
|
|
from toontown.safezone import DistributedTrolleyAI
|
2015-03-16 08:41:50 -05:00
|
|
|
from toontown.safezone import DistributedMMPianoAI
|
2015-03-03 16:10:12 -06:00
|
|
|
from toontown.toonbase import ToontownGlobals
|
2015-06-23 15:20:41 -05:00
|
|
|
from toontown.ai import DistributedEffectMgrAI
|
2015-03-03 16:10:12 -06:00
|
|
|
|
|
|
|
class MMHoodAI(HoodAI.HoodAI):
|
|
|
|
def __init__(self, air):
|
|
|
|
HoodAI.HoodAI.__init__(self, air,
|
|
|
|
ToontownGlobals.MinniesMelodyland,
|
|
|
|
ToontownGlobals.MinniesMelodyland)
|
|
|
|
|
|
|
|
self.trolley = None
|
2015-03-16 08:41:50 -05:00
|
|
|
self.piano = None
|
2015-03-03 16:10:12 -06:00
|
|
|
|
|
|
|
self.startup()
|
|
|
|
|
|
|
|
def startup(self):
|
|
|
|
HoodAI.HoodAI.startup(self)
|
|
|
|
|
|
|
|
if simbase.config.GetBool('want-minigames', True):
|
|
|
|
self.createTrolley()
|
|
|
|
|
2015-03-16 08:41:50 -05:00
|
|
|
self.piano = DistributedMMPianoAI.DistributedMMPianoAI(self.air)
|
2015-06-16 12:26:44 -05:00
|
|
|
self.piano.generateWithRequired(self.zoneId)
|
2015-03-16 08:41:50 -05:00
|
|
|
|
2015-06-24 08:49:20 -05:00
|
|
|
self.trickOrTreatMgr = DistributedEffectMgrAI.DistributedEffectMgrAI(self.air, ToontownGlobals.HALLOWEEN, 12)
|
2015-06-23 15:20:41 -05:00
|
|
|
self.trickOrTreatMgr.generateWithRequired(4835) # Ursatz for Really Kool Katz, Tenor Terrace
|
|
|
|
|
2015-06-24 08:49:20 -05:00
|
|
|
self.winterCarolingMgr = DistributedEffectMgrAI.DistributedEffectMgrAI(self.air, ToontownGlobals.CHRISTMAS, 14)
|
2015-06-23 15:20:41 -05:00
|
|
|
self.winterCarolingMgr.generateWithRequired(4614) # Shave and a Haircut for a Song, Alto Avenue
|
2015-03-03 16:10:12 -06:00
|
|
|
|
|
|
|
def createTrolley(self):
|
|
|
|
self.trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air)
|
|
|
|
self.trolley.generateWithRequired(self.zoneId)
|
2015-06-23 15:20:41 -05:00
|
|
|
self.trolley.start()
|