2015-03-03 22:10:12 +00:00
|
|
|
from toontown.hood import HoodAI
|
|
|
|
from toontown.safezone import DistributedTrolleyAI
|
2015-03-16 13:41:50 +00:00
|
|
|
from toontown.safezone import DistributedMMPianoAI
|
2015-03-03 22:10:12 +00:00
|
|
|
from toontown.toonbase import ToontownGlobals
|
|
|
|
from toontown.ai import DistributedTrickOrTreatTargetAI
|
|
|
|
|
|
|
|
class MMHoodAI(HoodAI.HoodAI):
|
|
|
|
def __init__(self, air):
|
|
|
|
HoodAI.HoodAI.__init__(self, air,
|
|
|
|
ToontownGlobals.MinniesMelodyland,
|
|
|
|
ToontownGlobals.MinniesMelodyland)
|
|
|
|
|
|
|
|
self.trolley = None
|
2015-03-16 13:41:50 +00:00
|
|
|
self.piano = None
|
2015-03-03 22:10:12 +00:00
|
|
|
|
|
|
|
self.startup()
|
|
|
|
|
|
|
|
def startup(self):
|
|
|
|
HoodAI.HoodAI.startup(self)
|
|
|
|
|
|
|
|
if simbase.config.GetBool('want-minigames', True):
|
|
|
|
self.createTrolley()
|
|
|
|
|
2015-03-16 13:41:50 +00:00
|
|
|
self.piano = DistributedMMPianoAI.DistributedMMPianoAI(self.air)
|
2015-06-16 00:56:12 +00:00
|
|
|
self.piano.generateWithRequired(self.zoneId)
|
2015-03-16 13:41:50 +00:00
|
|
|
|
2015-03-03 22:10:12 +00:00
|
|
|
if simbase.air.wantHalloween:
|
|
|
|
self.TrickOrTreatTargetManager = DistributedTrickOrTreatTargetAI.DistributedTrickOrTreatTargetAI(self.air)
|
|
|
|
self.TrickOrTreatTargetManager.generateWithRequired(4835)
|
|
|
|
|
|
|
|
def createTrolley(self):
|
|
|
|
self.trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air)
|
|
|
|
self.trolley.generateWithRequired(self.zoneId)
|
2015-06-11 02:20:40 +00:00
|
|
|
self.trolley.start()
|