mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
Merge branch 'sabrecat/potion-quests' into release
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user