mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Add silly meter code and make codes case insensitive
This commit is contained in:
parent
de561c6fc3
commit
bd25086f69
1 changed files with 7 additions and 1 deletions
|
@ -43,7 +43,6 @@ only include the comma if there are multiple arguments.
|
||||||
class TTCodeRedemptionMgrAI(DistributedObjectAI):
|
class TTCodeRedemptionMgrAI(DistributedObjectAI):
|
||||||
notify = DirectNotifyGlobal.directNotify.newCategory("TTCodeRedemptionMgrAI")
|
notify = DirectNotifyGlobal.directNotify.newCategory("TTCodeRedemptionMgrAI")
|
||||||
codes = {
|
codes = {
|
||||||
# weed code is for testing purposes, remove when done.
|
|
||||||
'weed': {
|
'weed': {
|
||||||
'items': [
|
'items': [
|
||||||
CatalogClothingItem.CatalogClothingItem(1821, 0)
|
CatalogClothingItem.CatalogClothingItem(1821, 0)
|
||||||
|
@ -55,6 +54,11 @@ class TTCodeRedemptionMgrAI(DistributedObjectAI):
|
||||||
'items': [
|
'items': [
|
||||||
CatalogGardenStarterItem.CatalogGardenStarterItem()
|
CatalogGardenStarterItem.CatalogGardenStarterItem()
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
'sillymeter': {
|
||||||
|
'items': [
|
||||||
|
CatalogClothingItem.CatalogClothingItem(1753, 0)
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,6 +81,8 @@ class TTCodeRedemptionMgrAI(DistributedObjectAI):
|
||||||
if not av:
|
if not av:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
code = code.lower()
|
||||||
|
|
||||||
if code in self.codes:
|
if code in self.codes:
|
||||||
if av.isCodeRedeemed(code):
|
if av.isCodeRedeemed(code):
|
||||||
self.sendUpdateToAvatarId(avId, 'redeemCodeResult', [4])
|
self.sendUpdateToAvatarId(avId, 'redeemCodeResult', [4])
|
||||||
|
|
Loading…
Reference in a new issue