mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 12:42:41 -06:00
39 lines
1.4 KiB
Python
Executable file
39 lines
1.4 KiB
Python
Executable file
from toontown.hood import HoodAI
|
|
from toontown.safezone import DistributedTrolleyAI, DistributedPillowAI
|
|
from toontown.toonbase import ToontownGlobals
|
|
from toontown.ai import DistributedResistanceEmoteMgrAI
|
|
from toontown.ai import DistributedTrickOrTreatTargetAI
|
|
|
|
|
|
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()
|
|
self.resistanceEmoteManager = DistributedResistanceEmoteMgrAI.DistributedResistanceEmoteMgrAI(self.air)
|
|
self.resistanceEmoteManager.generateWithRequired(9720)
|
|
|
|
if simbase.air.wantHalloween:
|
|
self.TrickOrTreatTargetManager = DistributedTrickOrTreatTargetAI.DistributedTrickOrTreatTargetAI(self.air)
|
|
self.TrickOrTreatTargetManager.generateWithRequired(9619)
|
|
|
|
self.createPillow()
|
|
|
|
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)
|
|
self.pillow.generateWithRequired(self.zoneId)
|