mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
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:
@@ -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;
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user