2015-03-03 16:10:12 -06:00
|
|
|
from toontown.hood import HoodAI
|
|
|
|
from toontown.safezone import DistributedTrolleyAI
|
|
|
|
from toontown.toonbase import ToontownGlobals
|
|
|
|
from toontown.ai import DistributedPolarPlaceEffectMgrAI
|
2015-06-23 15:20:41 -05:00
|
|
|
from toontown.ai import DistributedEffectMgrAI
|
2015-03-03 16:10:12 -06:00
|
|
|
|
|
|
|
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)
|
2015-07-05 18:59:25 -05:00
|
|
|
|
2015-06-24 08:49:20 -05:00
|
|
|
self.trickOrTreatMgr = DistributedEffectMgrAI.DistributedEffectMgrAI(self.air, ToontownGlobals.HALLOWEEN, 12)
|
2015-06-23 15:20:41 -05:00
|
|
|
self.trickOrTreatMgr.generateWithRequired(3707) # Snowplace Like Home, Sleet Street
|
2015-07-05 18:59:25 -05:00
|
|
|
|
2015-06-24 08:49:20 -05:00
|
|
|
self.winterCarolingMgr = DistributedEffectMgrAI.DistributedEffectMgrAI(self.air, ToontownGlobals.CHRISTMAS, 14)
|
2015-06-23 15:20:41 -05:00
|
|
|
self.winterCarolingMgr.generateWithRequired(3828) # Snowman's Land, Polar Place
|
2015-03-03 16:10:12 -06:00
|
|
|
|
|
|
|
def createTrolley(self):
|
|
|
|
self.trolley = DistributedTrolleyAI.DistributedTrolleyAI(self.air)
|
|
|
|
self.trolley.generateWithRequired(self.zoneId)
|
2015-07-05 18:59:25 -05:00
|
|
|
self.trolley.start()
|