Show dustcloud on disable

This commit is contained in:
John 2015-07-28 00:52:37 +03:00
parent e402d25e21
commit 28331e7b0a
2 changed files with 7 additions and 8 deletions

View file

@ -24,6 +24,11 @@ class DistributedRewardCrate(DistributedFurnitureItem):
def disable(self):
self.ignoreAll()
dustCloud = DustCloud.DustCloud(fBillboard=0, wantSound=1)
dustCloud.setBillboardAxis(2.0)
dustCloud.setScale(0.6)
dustCloud.createTrack()
Sequence(Func(dustCloud.reparentTo, render), Func(dustCloud.setPos, self.getPos()), dustCloud.track, Func(dustCloud.detachNode), Func(dustCloud.destroy)).start()
DistributedFurnitureItem.disable(self)
def destroyDialog(self):
@ -80,9 +85,3 @@ class DistributedRewardCrate(DistributedFurnitureItem):
self.showDialog(TTLocalizer.CrateClothingPrize)
elif responseCode == ToontownGlobals.CRATE_ACCESSORIES:
self.showDialog(TTLocalizer.CrateAccessoryPrize)
dustCloud = DustCloud.DustCloud(fBillboard=0, wantSound=1)
dustCloud.setBillboardAxis(2.0)
dustCloud.setScale(0.6)
dustCloud.createTrack()
Sequence(Func(dustCloud.reparentTo, render), Func(dustCloud.setPos, self.getPos()), dustCloud.track, Func(dustCloud.detachNode), Func(dustCloud.destroy)).start()

View file

@ -96,7 +96,7 @@ class DistributedToonAI(DistributedPlayerAI.DistributedPlayerAI, DistributedSmoo
self.fishingRod = 0
self.fishingTrophies = []
self.trackArray = []
self.emoteAccess = [0] * 27
self.emoteAccess = [0] * 24
self.maxMoney = 0
self.maxBankMoney = 0
self.bankMoney = 0