mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
* Added text to locale * Added achievement to content and libs * Added achievement modal * Added achievement to notification model and controller * Added achievement to user schema * Grant achievement to inviter when user registers using emailed link * Fix icon name * Added integration test * Fix linting * Added sprite
This commit is contained in:
@@ -112,6 +112,11 @@ let basicAchievs = {
|
||||
titleKey: 'joinedChallenge',
|
||||
textKey: 'joinedChallengeText',
|
||||
},
|
||||
invitedFriend: {
|
||||
icon: 'achievement-friends',
|
||||
titleKey: 'invitedFriend',
|
||||
textKey: 'invitedFriendText',
|
||||
},
|
||||
};
|
||||
Object.assign(achievementsData, basicAchievs);
|
||||
|
||||
|
||||
@@ -182,6 +182,7 @@ function _getBasicAchievements (user, language) {
|
||||
_addSimple(result, user, {path: 'joinedGuild', language});
|
||||
_addSimple(result, user, {path: 'royallyLoyal', language});
|
||||
_addSimple(result, user, {path: 'joinedChallenge', language});
|
||||
_addSimple(result, user, {path: 'invitedFriend', language});
|
||||
|
||||
_addSimpleWithMasterCount(result, user, {path: 'beastMaster', language});
|
||||
_addSimpleWithMasterCount(result, user, {path: 'mountMaster', language});
|
||||
|
||||
Reference in New Issue
Block a user