def _processExtraBonuses(vehicle):
    result = []
    withRareCamouflage = vehicle.intCD in g_paramsCache.getVehiclesWithoutCamouflage()
    hasCamo = bool(vehicle.getBonusCamo())
    if withRareCamouflage or hasCamo:
        result.append((EXTRAS_CAMOUFLAGE, 'extra'))
    return result
Example #2
0
def _processExtraBonuses(vehicle):
    result = []
    withRareCamouflage = vehicle.intCD in g_paramsCache.getVehiclesWithoutCamouflage(
    )
    if withRareCamouflage or any(
            map(itemgetter(0), vehicle.descriptor.camouflages)):
        result.append((EXTRAS_CAMOUFLAGE, 'extra'))
    return result
Example #3
0
def _processExtraBonuses(vehicle):
    result = []
    withRareCamouflage = vehicle.intCD in g_paramsCache.getVehiclesWithoutCamouflage()
    if any(map(itemgetter(0), vehicle.descriptor.camouflages)) or withRareCamouflage:
        result.append(('camouflage', 'extra'))
    return result