2019-11-27 19:14:30 -06:00
|
|
|
from direct.directnotify import DirectNotifyGlobal
|
|
|
|
from toontown.toonbase import ToontownGlobals
|
|
|
|
|
|
|
|
|
2019-11-17 15:29:23 -06:00
|
|
|
class HolidayManagerAI:
|
2019-11-27 19:14:30 -06:00
|
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('HolidayManagerAI')
|
|
|
|
|
2019-11-17 15:29:23 -06:00
|
|
|
def __init__(self, air):
|
|
|
|
self.air = air
|
|
|
|
self.currentHolidays = {}
|
2019-11-22 21:11:12 -06:00
|
|
|
|
|
|
|
def isHolidayRunning(self, holidayId):
|
2019-11-27 19:14:30 -06:00
|
|
|
return holidayId in self.currentHolidays
|
|
|
|
|
|
|
|
def isMoreXpHolidayRunning(self):
|
|
|
|
return ToontownGlobals.MORE_XP_HOLIDAY in self.currentHolidays
|