mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
More gifting.
This commit is contained in:
parent
8ad6894fb5
commit
87efdba167
3 changed files with 8 additions and 7 deletions
|
@ -42,8 +42,8 @@ class CatalogItem:
|
|||
return
|
||||
|
||||
def isAward(self):
|
||||
result = self.specialEventId != 0
|
||||
return result
|
||||
#result = self.specialEventId != 0
|
||||
return False
|
||||
|
||||
def makeNewItem(self):
|
||||
pass
|
||||
|
|
|
@ -175,6 +175,7 @@ class DistributedToonAI(DistributedPlayerAI.DistributedPlayerAI, DistributedSmoo
|
|||
from toontown.toon.DistributedNPCToonBaseAI import DistributedNPCToonBaseAI
|
||||
if not isinstance(self, DistributedNPCToonBaseAI):
|
||||
self.sendUpdate('setDefaultShard', [self.air.districtId])
|
||||
|
||||
self.accept('CATALOG_addGift_UD2Toon_%d' % self.doId, self.__handleAddGift)
|
||||
|
||||
def setLocation(self, parentId, zoneId):
|
||||
|
@ -238,11 +239,11 @@ class DistributedToonAI(DistributedPlayerAI.DistributedPlayerAI, DistributedSmoo
|
|||
del self.kart
|
||||
self._sendExitServerEvent()
|
||||
|
||||
self.ignore('CATALOG_addGift_UD2Toon_%d' % self.doId)
|
||||
|
||||
DistributedSmoothNodeAI.DistributedSmoothNodeAI.delete(self)
|
||||
DistributedPlayerAI.DistributedPlayerAI.delete(self)
|
||||
|
||||
self.ignore('CATALOG_addGift_UD2Toon_%d' % self.doId)
|
||||
|
||||
def deleteDummy(self):
|
||||
if self.inventory:
|
||||
self.inventory.unload()
|
||||
|
@ -2182,7 +2183,7 @@ class DistributedToonAI(DistributedPlayerAI.DistributedPlayerAI, DistributedSmoo
|
|||
self.b_setCatalogNotify(self.catalogNotify, ToontownGlobals.NewItems)
|
||||
return Task.done
|
||||
|
||||
def __handleAddGift(self, blob):
|
||||
def __handleAddGift(self, blob, ctx):
|
||||
store = CatalogItem.Customization | CatalogItem.DeliveryDate | CatalogItem.GiftTag
|
||||
self.onGiftOrder.append(CatalogItem.getItem(blob, store=store))
|
||||
self.b_setBothSchedules(self.onOrder, self.onGiftOrder)
|
||||
|
|
Loading…
Reference in a new issue