Exemplo n.º 1
0
 def cancelPurchase(self):
     if hasattr(self.originalSupply, 'keys'):
         gagIds = self.originalSupply.keys()
         for gagId in gagIds:
             base.localAvatar.updateAttackAmmo(
                 gagId, self.originalSupply.get(gagId))
         self.originalSupply = {}
     Shop.cancelPurchase(self)
 def cancelPurchase(self):
     if self.upgradesPurchased:
         if self.originalUpgrades[0] < base.localAvatar.getPUInventory()[0]:
             if base.localAvatar.getBattleZone():
                 if base.localAvatar.getBattleZone().getTurretManager():
                     base.localAvatar.getBattleZone().getTurretManager(
                     ).destroyGui()
     base.localAvatar.setPUInventory(self.originalUpgrades)
     Shop.cancelPurchase(self)