827445d8fa
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
16 lines
490 B
Python
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
|