oldschool-toontown/toontown/ai/HolidayManagerAI.py
John Cote 827445d8fa
general: current progress
progress includes:
 - cogs appear on streets now
 - additionally, street interests are setup for astron clients.
 - cog battles are mostly working
 - updated some sequences to work with newer panda3d
 - fixed particle effects search paths so that they load now
 - handled disconnect reasons for clients that disconnect during cog battles etc.
 - fleshed out the holiday manager a bit more
2019-11-27 20:14:30 -05:00

16 lines
490 B
Python

from direct.directnotify import DirectNotifyGlobal
from toontown.toonbase import ToontownGlobals
class HolidayManagerAI:
notify = DirectNotifyGlobal.directNotify.newCategory('HolidayManagerAI')
def __init__(self, air):
self.air = air
self.currentHolidays = {}
def isHolidayRunning(self, holidayId):
return holidayId in self.currentHolidays
def isMoreXpHolidayRunning(self):
return ToontownGlobals.MORE_XP_HOLIDAY in self.currentHolidays