def getChallengeBonusPacker(): mapping = getDefaultBonusPackersMap() mapping.update({ 'battleToken': NewYearTokenBonusUIPacker(), 'tmanToken': NewYearTmanTemplateBonusPacker(), 'customizations': CollapseInscriptionBonusPacker() }) return BonusUIPacker(mapping)
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)
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)
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)
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)
def getBattlePassBonusPacker(): mapping = getBattlePassBonusPackersMap() return BonusUIPacker(mapping)
def getAdditionalAwardsBonusPacker(): mapping = getDefaultBonusPackersMap() mapping.update({'customizations': _AdditionalCustomizationBonusUIPacker()}) return BonusUIPacker(mapping)
def getFrontlineBonusPacker(): mapping = getDefaultBonusPackersMap() mapping['items'] = FrontlineItemBonusUIPacker() return BonusUIPacker(mapping)