mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 04:32:33 -06:00
33 lines
No EOL
1.2 KiB
Python
Executable file
33 lines
No EOL
1.2 KiB
Python
Executable file
from toontown.hood import HoodAI
|
|
from toontown.safezone import DistributedTrolleyAI
|
|
from toontown.toonbase import ToontownGlobals
|
|
from toontown.ai import DistributedPolarPlaceEffectMgrAI
|
|
from toontown.ai import DistributedTrickOrTreatTargetAI
|
|
|
|
class BRHoodAI(HoodAI.HoodAI):
|
|
def __init__(self, air):
|
|
HoodAI.HoodAI.__init__(self, air,
|
|
ToontownGlobals.TheBrrrgh,
|
|
ToontownGlobals.TheBrrrgh)
|
|
|
|
self.trolley = None
|
|
|
|
self.startup()
|
|
|
|
def startup(self):
|
|
HoodAI.HoodAI.startup(self)
|
|
|
|
if simbase.config.GetBool('want-minigames', True):
|
|
self.createTrolley()
|
|
|
|
self.PolarPlaceEffectManager = DistributedPolarPlaceEffectMgrAI.DistributedPolarPlaceEffectMgrAI(self.air)
|
|
self.PolarPlaceEffectManager.generateWithRequired(3821)
|
|
|
|
if simbase.air.wantHalloween:
|
|
self.TrickOrTreatTargetManager = DistributedTrickOrTreatTargetAI.DistributedTrickOrTreatTargetAI(self.air)
|
|
self.TrickOrTreatTargetManager.generateWithRequired(3707)
|
|
|
|
def createTrolley(self):
|
|
self.trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air)
|
|
self.trolley.generateWithRequired(self.zoneId)
|
|
self.trolley.start() |