feat(kickstarter): add achievement

This commit is contained in:
Sabe Jones
2019-09-27 11:45:24 -05:00
parent 5a633e7b64
commit ef1e7ba336
6 changed files with 14 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ async function updateUser (user) {
let push = {pinnedItems: {$each: []}};
set.migration = MIGRATION_NAME;
set['achievements.ks2019'] = true;
// set['items.gear.owned.armor_special_ks2019'] = false;
// push.pinnedItems.$each.push({type: 'marketGear', path: 'gear.flat.armor_special_ks2019', _id: uuid()});

View File

@@ -24,5 +24,7 @@
"achievementDustDevilModalText": "You collected all the Desert Pets!",
"achievementAridAuthority": "Arid Authority",
"achievementAridAuthorityText": "Has tamed all Desert Mounts.",
"achievementAridAuthorityModalText": "You tamed all the Desert Mounts!"
"achievementAridAuthorityModalText": "You tamed all the Desert Mounts!",
"achievementKickstarter2019": "Pin Kickstarter Backer",
"achievementKickstarter2019Text": "Backed the 2019 Pin Kickstarter Project"
}

View File

@@ -193,6 +193,11 @@ let specialAchievs = {
pluralTitleKey: 'helped',
pluralTextKey: 'surveysMultiple',
},
kickstarter2019: {
icon: 'achievement-kickstarter2019',
titleKey: 'achievementKickstarter2019',
textKey: 'achievementKickstarter2019Text',
},
};
Object.assign(achievementsData, specialAchievs);

View File

@@ -300,6 +300,10 @@ function _getSpecialAchievements (user, language) {
_addSimple(result, user, {path: 'originalUser', language});
}
if (user.achievements.kickstarter2019) {
_addSimple(result, user, {path: 'kickstarter2019', language});
}
return result;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

@@ -126,6 +126,7 @@ let schema = new Schema({
allYourBase: Boolean,
dustDevil: Boolean,
aridAuthority: Boolean,
kickstarter2019: Boolean,
},
backer: {