Thunderstorm Hatching Potions (#7885)

* feat(premium): Thunderstorm Potions

* chore(news): Thunderstorm Bailey

* fix(test): allow addlNotes key
This commit is contained in:
Sabe Jones
2016-08-09 17:37:39 -05:00
committed by GitHub
parent 689a321a9b
commit 051763bc49
46 changed files with 81 additions and 26 deletions

View File

@@ -58,6 +58,29 @@ shops.getMarketCategories = function getMarket (user, language) {
}).sortBy('key').value();
categories.push(hatchingPotionsCategory);
let premiumHatchingPotionsCategory = {
identifier: 'hatchingPotions',
text: i18n.t('magicHatchingPotions', language),
notes: i18n.t('premiumPotionNoDropExplanation', language),
};
premiumHatchingPotionsCategory.items = _(content.hatchingPotions)
.values()
.filter(hp => hp.limited && hp.canBuy())
.map(premiumHatchingPotion => {
return {
key: premiumHatchingPotion.key,
text: premiumHatchingPotion.text(language),
notes: premiumHatchingPotion.notes(language),
addlNotes: premiumHatchingPotion.addlNotes(language),
class: `Pet_HatchingPotion_${premiumHatchingPotion.key}`,
value: premiumHatchingPotion.value,
locked: false,
currency: 'gems',
purchaseType: 'hatchingPotions',
};
}).sortBy('key').value();
categories.push(premiumHatchingPotionsCategory);
let foodCategory = {
identifier: 'food',
text: i18n.t('food', language),