feat(content): bundle and cheevo

This commit is contained in:
Sabe Jones
2021-02-16 17:00:39 -06:00
parent 0fad23ad80
commit ee1f95bb67
16 changed files with 321 additions and 136 deletions

View File

@@ -232,6 +232,11 @@ const basicAchievs = {
titleKey: 'achievementRedLetterDay',
textKey: 'achievementRedLetterDayText',
},
legendaryBestiary: {
icon: 'achievement-legendaryBestiary',
titleKey: 'achievementLegendaryBestiary',
textKey: 'achievementLegendaryBestiaryText',
},
};
Object.assign(achievementsData, basicAchievs);

View File

@@ -190,7 +190,7 @@ const bundles = {
'gryphon',
],
canBuy () {
return moment().isBetween('2019-02-19', '2019-03-02');
return moment().isBefore('2021-02-28T08:00-05:00');
},
type: 'quests',
value: 7,

View File

@@ -0,0 +1,16 @@
const ANIMAL_SET_ACHIEVEMENTS = {
legendaryBestiary: {
type: 'pet',
species: [
'Dragon',
'FlyingPig',
'Gryphon',
'SeaSerpent',
'Unicorn',
],
achievementKey: 'legendaryBestiary',
notificationType: 'ACHIEVEMENT_LEGENDARY_BESTIARY',
},
};
export default ANIMAL_SET_ACHIEVEMENTS;

View File

@@ -30,5 +30,6 @@ export const USER_CAN_OWN_QUEST_CATEGORIES = [
export { EVENTS } from './events';
export { default as SEASONAL_SETS } from './seasonalSets';
export { default as ANIMAL_COLOR_ACHIEVEMENTS } from './animalColorAchievements';
export { default as ANIMAL_SET_ACHIEVEMENTS } from './animalSetAchievements';
export { default as QUEST_SERIES_ACHIEVEMENTS } from './questSeriesAchievements';
export { default as ITEM_LIST } from './itemList';

View File

@@ -11,6 +11,7 @@ import {
ITEM_LIST,
QUEST_SERIES_ACHIEVEMENTS,
ANIMAL_COLOR_ACHIEVEMENTS,
ANIMAL_SET_ACHIEVEMENTS,
} from './constants';
import achievements from './achievements';
@@ -43,6 +44,7 @@ const api = {};
api.achievements = achievements;
api.questSeriesAchievements = QUEST_SERIES_ACHIEVEMENTS;
api.animalColorAchievements = ANIMAL_COLOR_ACHIEVEMENTS;
api.animalSetAchievements = ANIMAL_SET_ACHIEVEMENTS;
api.quests = quests;
api.questsByLevel = questsByLevel;