mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-10-31 08:47:54 +00:00
Replace ugly method with beautiful
This commit is contained in:
parent
0f4521a19e
commit
a03c70c0e6
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ class CatalogItemPanel(DirectFrame):
|
|||
self.buyButton['state'] = DGG.DISABLED
|
||||
elif self['item'].getEmblemPrices() and not base.localAvatar.isEnoughMoneyAndEmblemsToBuy(self['item'].getPrice(self['type']), self['item'].getEmblemPrices()):
|
||||
self.buyButton['state'] = DGG.DISABLED
|
||||
elif self['item'].__class__.__name__ == "CatalogHouseItem" and self['item'].houseId == localAvatar.houseType:
|
||||
elif hasattr(self['item'], 'houseId') and self['item'].houseId == localAvatar.houseType:
|
||||
auxText = TTLocalizer.CatalogPurchasedMaxText
|
||||
elif self['item'].getPrice(self['type']) <= base.localAvatar.getMoney() + base.localAvatar.getBankMoney():
|
||||
self.buyButton['state'] = DGG.NORMAL
|
||||
|
|
Loading…
Reference in a new issue