17 lines
490 B
Python
17 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
|