Example #1
0
def getChallengeBonusPacker():
    mapping = getDefaultBonusPackersMap()
    mapping.update({
        'battleToken': NewYearTokenBonusUIPacker(),
        'tmanToken': NewYearTmanTemplateBonusPacker(),
        'customizations': CollapseInscriptionBonusPacker()
    })
    return BonusUIPacker(mapping)
Example #2
0
def getBattlePassBonusPacker():
    mapping = getDefaultBonusPackersMap()
    mapping.update({
        'undefined': UndefinedBonusPacker(),
        'tmanToken': TmanTemplateBonusPacker(),
        'customizations': BattlePassCustomizationsBonusPacker(),
        'premium_plus': BattlePassPremiumDaysPacker(),
        'dossier': BattlePassDossierBonusPacker()
    })
    return BonusUIPacker(mapping)
def getMapboxBonusPacker():
    mapping = getDefaultBonusPackersMap()
    mapping.update({
        'goodies': MapboxGoodiesPacker(),
        PREMIUM_ENTITLEMENTS.PLUS: MapboxPremiumDaysPacker(),
        'customizations': MapboxCustomizationPacker(),
        'items': MapboxItemPacker(),
        'selectableCrewbook': MapboxSelectablePacker(),
        'crewBooks': MapboxCrewBookPacker(),
        'randomCrewbook': MapboxRandomCrewbookPacker()
    })
    return BonusUIPacker(mapping)
Example #4
0
def getBattlePassBonusPacker():
    mapping = getDefaultBonusPackersMap()
    mapping.update({'tmanToken': TmanTemplateBonusPacker(),
     'customizations': BattlePassCustomizationsBonusPacker(),
     'premium_plus': BattlePassPremiumDaysPacker(),
     'dossier': BattlePassDossierBonusPacker(),
     'items': ExtendedItemBonusUIPacker(),
     'crewBooks': ExtendedCrewBookBonusUIPacker(),
     'blueprints': BattlePassBlueprintsBonusPacker(),
     'slots': BattlePassSlotsBonusPacker(),
     'vehicles': BattlePassVehiclesBonusUIPacker(),
     'freeXP': BattlePassFreeXPPacker(),
     Currency.CREDITS: ExtendedCreditsBonusUIPacker(),
     BATTLE_PASS_STYLE_PROGRESS_BONUS_NAME: BattlePassStyleProgressTokenBonusPacker(),
     BATTLE_PASS_SELECT_BONUS_NAME: SelectBonusPacker(),
     BATTLE_PASS_Q_CHAIN_BONUS_NAME: QuestChainBonusPacker(),
     Currency.BPCOIN: CoinBonusPacker()})
    return BonusUIPacker(mapping)
Example #5
0
def getLootBoxBonusPacker(isExtra=False):
    mapping = getDefaultBonusPackersMap()
    mapping.update({
        'items':
        NYItemBonusUIPacker(),
        'vehicles':
        NYVehiclesBonusUIPacker(),
        'customizations':
        Customization3Dand2DbonusUIPacker(),
        MERGED_BONUS_NAME:
        MergedBonusUIPacker(),
        CurrentNYConstants.TOYS:
        NYToyBonusUIPackerExtra() if isExtra else NYToyBonusUIPacker(),
        CurrentNYConstants.TOY_FRAGMENTS:
        NYToyFragmentsBonusPacker(),
        'tmanToken':
        NewYearTmanTemplateBonusPacker()
    })
    return BonusUIPacker(mapping)
Example #6
0
def getNewYearBonusPacker():
    mapping = getDefaultBonusPackersMap()
    mapping.update({
        'battleToken':
        NewYearTokenBonusUIPacker(),
        'dossier':
        NewYearDossierBonusUIPacker(),
        'tmanToken':
        NewYearTmanTemplateBonusPacker(),
        'customizations':
        NewYearCustomizationsBonusPacker(),
        NyBonusNames.ALBUM_ACCESS:
        SimpleBonusUIPacker(),
        NyBonusNames.VEHICLE_SLOT:
        NYVehicleSlotBonusPacker(),
        CurrentNYConstants.TOY_FRAGMENTS:
        NYToyFragmentsBonusPacker(),
        CurrentNYConstants.FILLERS:
        NYFillersBonusPacker()
    })
    return BonusUIPacker(mapping)
Example #7
0
def getBattlePassBonusPacker():
    mapping = getBattlePassBonusPackersMap()
    return BonusUIPacker(mapping)
Example #8
0
def getAdditionalAwardsBonusPacker():
    mapping = getDefaultBonusPackersMap()
    mapping.update({'customizations': _AdditionalCustomizationBonusUIPacker()})
    return BonusUIPacker(mapping)
def getFrontlineBonusPacker():
    mapping = getDefaultBonusPackersMap()
    mapping['items'] = FrontlineItemBonusUIPacker()
    return BonusUIPacker(mapping)