mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
feat(kickstarter): add achievement
This commit is contained in:
@@ -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()});
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -193,6 +193,11 @@ let specialAchievs = {
|
||||
pluralTitleKey: 'helped',
|
||||
pluralTextKey: 'surveysMultiple',
|
||||
},
|
||||
kickstarter2019: {
|
||||
icon: 'achievement-kickstarter2019',
|
||||
titleKey: 'achievementKickstarter2019',
|
||||
textKey: 'achievementKickstarter2019Text',
|
||||
},
|
||||
};
|
||||
Object.assign(achievementsData, specialAchievs);
|
||||
|
||||
|
||||
@@ -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 |
@@ -126,6 +126,7 @@ let schema = new Schema({
|
||||
allYourBase: Boolean,
|
||||
dustDevil: Boolean,
|
||||
aridAuthority: Boolean,
|
||||
kickstarter2019: Boolean,
|
||||
},
|
||||
|
||||
backer: {
|
||||
|
||||
Reference in New Issue
Block a user