mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-11-01 01:07:54 +00:00
40 lines
1.5 KiB
Python
40 lines
1.5 KiB
Python
from toontown.classicchars import DistributedMinnieAI
|
|
from toontown.hood import HoodAI
|
|
from toontown.safezone import DistributedTrolleyAI
|
|
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
|
|
self.classicChar = None
|
|
|
|
self.startup()
|
|
|
|
def startup(self):
|
|
HoodAI.HoodAI.startup(self)
|
|
|
|
if simbase.config.GetBool('want-minigames', True):
|
|
self.createTrolley()
|
|
if simbase.config.GetBool('want-classic-chars', True):
|
|
if simbase.config.GetBool('want-minnie', True):
|
|
self.createClassicChar()
|
|
|
|
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)
|
|
self.trolley.start()
|
|
|
|
def createClassicChar(self):
|
|
self.classicChar = DistributedMinnieAI.DistributedMinnieAI(self.air)
|
|
self.classicChar.generateWithRequired(self.zoneId)
|
|
self.classicChar.start()
|