Merge branch 'sabrecat/potion-quests' into release

This commit is contained in:
Sabe Jones
2019-05-21 14:28:46 -05:00
72 changed files with 8889 additions and 8602 deletions

View File

@@ -5,6 +5,13 @@ import t from './translation';
const CURRENT_SEASON = 'May';
function hasQuestAchievementFunction (key) {
return (user) => {
return user.achievements.quests &&
user.achievements.quests[key] > 0;
};
}
let drops = {
Base: {
value: 2,
@@ -174,6 +181,13 @@ let premium = {
limited: true,
_season: 'May',
},
Bronze: {
value: 2,
text: t('hatchingPotionBronze'),
limited: true,
_season: 'March',
canBuy: hasQuestAchievementFunction('bronze'),
},
};
const wacky = {