예제 #1
0
 def _setupPlugins(self, skipConfirm):
     itemPrice = self.battleBooster.buyPrices.getSum().price
     self.addPlugins((proc_plugs.MoneyValidator(itemPrice * self.count),
                      proc_plugs.BattleBoosterConfirmator(
                          'confirmBattleBoosterBuyAndInstall',
                          'confirmBattleBoosterInstallNotSuitable',
                          self.vehicle,
                          self.battleBooster,
                          isEnabled=not skipConfirm)))
예제 #2
0
 def _setupPlugins(self, skipConfirm):
     if self.battleBooster:
         self.addPlugin(
             proc_plugs.BattleBoosterConfirmator(
                 'confirmBattleBoosterInstall',
                 'confirmBattleBoosterInstallNotSuitable',
                 self.vehicle,
                 self.battleBooster,
                 isEnabled=not skipConfirm))