Exemple #1
0
 def confirmPurchase(self):
     ammoList = []
     if not hasattr(self.originalSupply, 'keys'):
         gagIds = []
     else:
         gagIds = self.originalSupply.keys()
         for gagId in gagIds:
             ammoList.append(
                 base.localAvatar.getBackpack().getSupply(gagId))
     self.distShop.sendUpdate(
         'confirmPurchase',
         [gagIds, ammoList, base.localAvatar.getMoney()])
     Shop.confirmPurchase(self)
 def confirmPurchase(self):
     self.distShop.sendUpdate('confirmPurchase',
                              [[
                                  base.localAvatar.getPUInventory()[0],
                                  base.localAvatar.getPUInventory()[1]
                              ],
                               base.localAvatar.getMoney()])
     if self.upgradesPurchased:
         if base.localAvatar.getPUInventory()[0] > 0:
             if base.localAvatar.getBattleZone():
                 if base.localAvatar.getBattleZone().getTurretManager():
                     if not base.localAvatar.getBattleZone(
                     ).getTurretManager().myTurret:
                         base.localAvatar.getBattleZone().getTurretManager(
                         ).createTurretButton()
     Shop.confirmPurchase(self)