historical/toontown-just-works.git/toontown/ai/DistributedBlackCatMgr.py

22 lines
773 B
Python
Raw Normal View History

2024-01-16 17:20:27 +00:00
from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObject import DistributedObject
from toontown.toonbase import ToontownGlobals
class DistributedBlackCatMgr(DistributedObject):
neverDisable = 1
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedBlackCatMgr')
def announceGenerate(self):
DistributedObject.announceGenerate(self)
base.cr.blackCatMgr = self
def delete(self):
base.cr.blackCatMgr = None
DistributedObject.delete(self)
def requestBlackCatTransformation(self):
self.sendUpdate('requestBlackCatTransformation')
def doBlackCatTransformation(self):
base.localAvatar.getDustCloud(0.0, color=base.localAvatar.style.getBlackColor()).start()