Added all CodeRedemption imports, and set correct date for weed.

This commit is contained in:
Loudrob 2015-03-07 20:07:17 -05:00
parent fd9c3c945b
commit 5bc386c801

View file

@ -1,5 +1,6 @@
from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
from toontown.catalog import CatalogAccessoryItem
from toontown.catalog import CatalogClothingItem
from toontown.catalog import CatalogNametagItem
from toontown.catalog import CatalogChatItem
@ -9,7 +10,13 @@ from toontown.catalog import CatalogGardenStarterItem
from toontown.catalog import CatalogMouldingItem
from toontown.catalog import CatalogRentalItem
from toontown.catalog import CatalogFurnitureItem
from toontown.catalog import CatalogAnimatedFurnitureItem
from toontown.catalog import CatalogFlooringItem
from toontown.catalog import CatalogPetTrickItem
from toontown.catalog import CatalogWainscotingItem
from toontown.catalog import CatalogToonStatueItem
from toontown.catalog import CatalogWallpaperItem
from toontown.catalog import CatalogWindowItem
from toontown.toonbase import ToontownGlobals
from datetime import datetime, timedelta
import time
@ -35,7 +42,8 @@ class TTCodeRedemptionMgrAI(DistributedObjectAI):
'items': [
CatalogClothingItem.CatalogClothingItem(1821, 0)
],
'expirationDate': datetime(2016, 3, 30) # temporary expiration until release
'month': 4,
'day': 20
},
'gardening': {
'items': [
@ -95,4 +103,4 @@ class TTCodeRedemptionMgrAI(DistributedObjectAI):
av.onOrder.append(item)
av.b_setDeliverySchedule(av.onOrder)
self.sendUpdateToAvatarId(avId, 'redeemCodeResult', [context, 0, 0])
self.sendUpdateToAvatarId(avId, 'redeemCodeResult', [context, 0, 0])