mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 12:12:36 -06:00
48 lines
1.7 KiB
Python
48 lines
1.7 KiB
Python
from toontown.classicchars import DistributedDonaldDockAI
|
|
from toontown.hood import HoodAI
|
|
from toontown.safezone import DistributedBoatAI
|
|
from toontown.safezone import DistributedTrolleyAI
|
|
from toontown.toonbase import ToontownGlobals
|
|
from toontown.ai import DistributedTrickOrTreatTargetAI
|
|
|
|
|
|
class DDHoodAI(HoodAI.HoodAI):
|
|
def __init__(self, air):
|
|
HoodAI.HoodAI.__init__(self, air,
|
|
ToontownGlobals.DonaldsDock,
|
|
ToontownGlobals.DonaldsDock)
|
|
|
|
self.trolley = None
|
|
self.boat = None
|
|
self.classicChar = None
|
|
|
|
self.startup()
|
|
|
|
def startup(self):
|
|
HoodAI.HoodAI.startup(self)
|
|
|
|
if simbase.config.GetBool('want-minigames', True):
|
|
self.createTrolley()
|
|
self.createBoat()
|
|
if simbase.config.GetBool('want-classic-chars', True):
|
|
if simbase.config.GetBool('want-donald-dock', True):
|
|
self.createClassicChar()
|
|
|
|
if simbase.air.wantHalloween:
|
|
self.TrickOrTreatTargetManager = DistributedTrickOrTreatTargetAI.DistributedTrickOrTreatTargetAI(self.air)
|
|
self.TrickOrTreatTargetManager.generateWithRequired(1834)
|
|
|
|
def createTrolley(self):
|
|
self.trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air)
|
|
self.trolley.generateWithRequired(self.zoneId)
|
|
self.trolley.start()
|
|
|
|
def createBoat(self):
|
|
self.boat = DistributedBoatAI.DistributedBoatAI(self.air)
|
|
self.boat.generateWithRequired(self.zoneId)
|
|
self.boat.start()
|
|
|
|
def createClassicChar(self):
|
|
self.classicChar = DistributedDonaldDockAI.DistributedDonaldDockAI(self.air)
|
|
self.classicChar.generateWithRequired(self.zoneId)
|
|
self.classicChar.start()
|