feat(content): golden achievements

This commit is contained in:
Sabe Jones
2020-08-18 15:13:06 -05:00
parent 29c21f09e1
commit 6255c5dcc7
16 changed files with 199 additions and 125 deletions
@@ -202,6 +202,16 @@ const basicAchievs = {
titleKey: 'achievementFreshwaterFriends',
textKey: 'achievementFreshwaterFriendsText',
},
goodAsGold: {
icon: 'achievement-goodAsGold',
titleKey: 'achievementGoodAsGold',
textKey: 'achievementGoodAsGoldText',
},
allThatGlitters: {
icon: 'achievement-allThatGlitters',
titleKey: 'achievementAllThatGlitters',
textKey: 'achievementAllThatGlittersText',
},
};
Object.assign(achievementsData, basicAchievs);
@@ -341,4 +341,11 @@ export const ANIMAL_COLOR_ACHIEVEMENTS = [
mountAchievement: 'rosyOutlook',
mountNotificationType: 'ACHIEVEMENT_ROSY_OUTLOOK',
},
{
color: 'Golden',
petAchievement: 'goodAsGold',
petNotificationType: 'ACHIEVEMENT_GOOD_AS_GOLD',
mountAchievement: 'allThatGlitters',
mountNotificationType: 'ACHIEVEMENT_ALL_THAT_GLITTERS',
},
];
@@ -202,6 +202,8 @@ function _getBasicAchievements (user, language) {
_addSimple(result, user, { path: 'bugBonanza', language });
_addSimple(result, user, { path: 'bareNecessities', language });
_addSimple(result, user, { path: 'freshwaterFriends', language });
_addSimple(result, user, { path: 'goodAsGold', language });
_addSimple(result, user, { path: 'allThatGlitters', language });
_addSimpleWithMasterCount(result, user, { path: 'beastMaster', language });
_addSimpleWithMasterCount(result, user, { path: 'mountMaster', language });