mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 19:52:37 -06:00
Show dustcloud on disable
This commit is contained in:
parent
e402d25e21
commit
28331e7b0a
2 changed files with 7 additions and 8 deletions
|
@ -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):
|
||||
|
@ -79,10 +84,4 @@ class DistributedRewardCrate(DistributedFurnitureItem):
|
|||
elif responseCode == ToontownGlobals.CRATE_CLOTHING:
|
||||
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()
|
||||
self.showDialog(TTLocalizer.CrateAccessoryPrize)
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue