Poodletooth-iLand/toontown/pets/PetDetail.py

17 lines
500 B
Python
Raw Normal View History

2015-03-03 22:10:12 +00:00
from direct.directnotify import DirectNotifyGlobal
from otp.avatar import AvatarDetail
from toontown.pets import DistributedPet
class PetDetail(AvatarDetail.AvatarDetail):
notify = DirectNotifyGlobal.directNotify.newCategory('PetDetail')
def getDClass(self):
return 'DistributedPet'
def createHolder(self):
pet = DistributedPet.DistributedPet(base.cr, bFake=True)
pet.forceAllowDelayDelete()
pet.generateInit()
pet.generate()
return pet