oldschool-toontown/toontown/ai/HolidayManagerAI.py

17 lines
490 B
Python
Raw Normal View History

from direct.directnotify import DirectNotifyGlobal
from toontown.toonbase import ToontownGlobals
2019-11-17 15:29:23 -06:00
class HolidayManagerAI:
notify = DirectNotifyGlobal.directNotify.newCategory('HolidayManagerAI')
2019-11-17 15:29:23 -06:00
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