March 2017 Content (#8594)

* feat(content): Mystery 032017, Shimmer Potions

* fix(date): end 4/19 not 30

* fix(dates): Floral after Shimmer
This commit is contained in:
Sabe Jones
2017-03-23 14:41:41 -05:00
committed by GitHub
parent 421bdce38b
commit 814b163e1a
52 changed files with 37 additions and 8 deletions

View File

@@ -3,6 +3,8 @@ import defaults from 'lodash/defaults';
import each from 'lodash/each';
import t from './translation';
const CURRENT_SEASON = 'April';
let drops = {
Base: {
value: 2,
@@ -58,6 +60,12 @@ let premium = {
limited: true,
_season: 'valentines',
},
Shimmer: {
value: 2,
text: t('hatchingPotionShimmer'),
limited: true,
_season: 'April',
},
Floral: {
value: 2,
text: t('hatchingPotionFloral'),
@@ -118,11 +126,13 @@ each(premium, (pot, key) => {
notes: t('hatchingPotionNotes', {
potText: pot.text,
}),
_addlNotes: t(`${pot._season}EventAvailability`),
_addlNotes: t('eventAvailability', {
date: t(`dateEnd${pot._season}`),
}),
premium: true,
limited: false,
canBuy () {
return pot._season === 'regular';
return pot._season === CURRENT_SEASON;
},
});
});