2015-03-03 22:10:12 +00:00
|
|
|
from toontown.hood import HoodAI
|
|
|
|
from toontown.safezone import DistributedBoatAI
|
|
|
|
from toontown.safezone import DistributedTrolleyAI
|
|
|
|
from toontown.toonbase import ToontownGlobals
|
2015-06-23 20:20:41 +00:00
|
|
|
from toontown.ai import DistributedEffectMgrAI
|
2015-03-03 22:10:12 +00:00
|
|
|
|
|
|
|
class DDHoodAI(HoodAI.HoodAI):
|
|
|
|
def __init__(self, air):
|
|
|
|
HoodAI.HoodAI.__init__(self, air,
|
|
|
|
ToontownGlobals.DonaldsDock,
|
|
|
|
ToontownGlobals.DonaldsDock)
|
|
|
|
|
|
|
|
self.trolley = None
|
|
|
|
self.boat = None
|
|
|
|
|
|
|
|
self.startup()
|
|
|
|
|
|
|
|
def startup(self):
|
|
|
|
HoodAI.HoodAI.startup(self)
|
|
|
|
|
|
|
|
if simbase.config.GetBool('want-minigames', True):
|
|
|
|
self.createTrolley()
|
|
|
|
self.createBoat()
|
2015-06-11 02:20:40 +00:00
|
|
|
|
2015-06-24 13:49:20 +00:00
|
|
|
self.trickOrTreatMgr = DistributedEffectMgrAI.DistributedEffectMgrAI(self.air, ToontownGlobals.HALLOWEEN, 12)
|
2015-06-23 20:20:41 +00:00
|
|
|
self.trickOrTreatMgr.generateWithRequired(1834) # Rudderly Ridiculous, Lighthouse Lane
|
2015-07-05 23:59:25 +00:00
|
|
|
|
2015-06-24 13:49:20 +00:00
|
|
|
self.winterCarolingMgr = DistributedEffectMgrAI.DistributedEffectMgrAI(self.air, ToontownGlobals.CHRISTMAS, 14)
|
2015-06-23 20:20:41 +00:00
|
|
|
self.winterCarolingMgr.generateWithRequired(1707) # Gifts with a Porpoise, Seaweed Street
|
2015-03-03 22:10:12 +00:00
|
|
|
|
|
|
|
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)
|
2015-07-05 23:59:25 +00:00
|
|
|
self.boat.start()
|