Esempio n. 1
0
 def _getCompatible(self):
     vehiclesNamesList = self.compatibles
     clipVehicleNamesList = self.clipVehiclesCompatibles
     curVehicle = _getInstalledModuleVehicle(self._vehicleDescr, self._itemDescr)
     result = []
     if len(clipVehicleNamesList) != 0:
         if len(vehiclesNamesList):
             result.append(('uniChargedVehicles', formatters.formatCompatibles(curVehicle, vehiclesNamesList)))
         result.append(('clipVehicles', formatters.formatCompatibles(curVehicle, clipVehicleNamesList)))
     else:
         result.append(('vehicles', formatters.formatCompatibles(curVehicle, vehiclesNamesList)))
     result.append(('shells', ', '.join(self.shellsCompatibles)))
     return tuple(result)
Esempio n. 2
0
 def _getCompatible(self):
     if self._vehicleDescr is not None:
         curGun = self._vehicleDescr.gun['userString']
     else:
         curGun = None
     compatibleVehicles = list(super(TurretParams, self)._getCompatible())
     compatibleVehicles.append(('guns', formatters.formatCompatibles(curGun, self.gunCompatibles)))
     return tuple(compatibleVehicles)
Esempio n. 3
0
 def _getCompatible(self):
     if self._vehicleDescr is not None:
         curGun = self._vehicleDescr.gun['userString']
     else:
         curGun = None
     compatibleVehicles = list(super(TurretParams, self)._getCompatible())
     compatibleVehicles.append(
         ('guns', formatters.formatCompatibles(curGun,
                                               self.gunCompatibles)))
     return tuple(compatibleVehicles)
Esempio n. 4
0
 def _getCompatible(self):
     vehiclesNamesList = self.compatibles
     clipVehicleNamesList = self.clipVehiclesCompatibles
     curVehicle = _getInstalledModuleVehicle(self._vehicleDescr,
                                             self._itemDescr)
     result = []
     if len(clipVehicleNamesList) != 0:
         if len(vehiclesNamesList):
             result.append(
                 ('uniChargedVehicles',
                  formatters.formatCompatibles(curVehicle,
                                               vehiclesNamesList)))
         result.append(
             ('clipVehicles',
              formatters.formatCompatibles(curVehicle,
                                           clipVehicleNamesList)))
     else:
         result.append(
             ('vehicles',
              formatters.formatCompatibles(curVehicle, vehiclesNamesList)))
     result.append(('shells', ', '.join(self.shellsCompatibles)))
     return tuple(result)
Esempio n. 5
0
 def _getCompatible(self):
     curVehicle = _getInstalledModuleVehicle(self._vehicleDescr, self._itemDescr)
     return (('vehicles', formatters.formatCompatibles(curVehicle, self.compatibles)),)
Esempio n. 6
0
 def _getCompatible(self):
     curVehicle = _getInstalledModuleVehicle(self._vehicleDescr,
                                             self._itemDescr)
     return (('vehicles',
              formatters.formatCompatibles(curVehicle, self.compatibles)), )