Content: Beta Groups Testing Achievement (#14014)

* content: beta Groups testing achievement

* resolving merge conflict
This commit is contained in:
Natalie L
2022-06-03 16:04:27 -04:00
committed by GitHub
parent afc7b1218a
commit d726b88a86
4 changed files with 14 additions and 1 deletions

View File

@@ -132,5 +132,8 @@
"achievementBirdsOfAFeatherModalText": "You collected all the flying pets!", "achievementBirdsOfAFeatherModalText": "You collected all the flying pets!",
"achievementReptacularRumble": "Reptacular Rumble", "achievementReptacularRumble": "Reptacular Rumble",
"achievementReptacularRumbleText": "Has hatched all the standard colors of reptile pets: Alligator, Pterodactyl, Snake, Triceratops, Turtle, Tyrannosaurus Rex, and Velociraptor!", "achievementReptacularRumbleText": "Has hatched all the standard colors of reptile pets: Alligator, Pterodactyl, Snake, Triceratops, Turtle, Tyrannosaurus Rex, and Velociraptor!",
"achievementReptacularRumbleModalText": "You collected all the reptile pets!" "achievementReptacularRumbleModalText": "You collected all the reptile pets!",
"achievementGroupsBeta2022":"Interactive Beta Tester",
"achievementGroupsBeta2022Text":"You and your group provided invaluable feedback to help Habitica test.",
"achievementGroupsBeta2022ModalText":"You and your groups helped Habitica by testing and providing feedback!"
} }

View File

@@ -372,6 +372,11 @@ const specialAchievs = {
titleKey: 'achievementKickstarter2019', titleKey: 'achievementKickstarter2019',
textKey: 'achievementKickstarter2019Text', textKey: 'achievementKickstarter2019Text',
}, },
groupsBeta2022: {
icon: 'achievement-groupsBeta2022',
titleKey: 'achievementGroupsBeta2022',
textKey: 'achievementGroupsBeta2022Text',
},
}; };
Object.assign(achievementsData, specialAchievs); Object.assign(achievementsData, specialAchievs);

View File

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

View File

@@ -156,6 +156,7 @@ export default new Schema({
hatchedPet: Boolean, hatchedPet: Boolean,
fedPet: Boolean, fedPet: Boolean,
purchasedEquipment: Boolean, purchasedEquipment: Boolean,
groupsBeta2022: Boolean,
}, },
backer: { backer: {