mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
chore(content): add Bone to Pick achievement (#14318)
* chore(content): add Bone to Pick achievement * chore(content): update spritesmith-main.css * chore(content): add more bone picking * chore(content): more bone picking * chore(content): bone picking * chore(content): i gotta bone to pick here * chore(content): final bone picking * chore: add migration script * chore: update habitica-images Co-authored-by: SabreCat <sabe@habitica.com>
This commit is contained in:
@@ -241,6 +241,14 @@ const NOTIFICATIONS = {
|
||||
achievement: 'mountColorAchievs',
|
||||
},
|
||||
},
|
||||
ACHIEVEMENT_PET_SET_COMPLETE: {
|
||||
achievement: true,
|
||||
label: $t => `${$t('achievement')}: ${$t('achievementPetSetComplete')}`,
|
||||
modalId: 'generic-achievement',
|
||||
data: {
|
||||
achievement: 'petSetCompleteAchievs',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default {
|
||||
@@ -313,6 +321,7 @@ export default {
|
||||
'ACHIEVEMENT_ANIMAL_SET',
|
||||
'ACHIEVEMENT_PET_COLOR',
|
||||
'ACHIEVEMENT_MOUNT_COLOR',
|
||||
'ACHIEVEMENT_PET_SET_COMPLETE',
|
||||
].forEach(type => {
|
||||
handledNotifications[type] = true;
|
||||
});
|
||||
@@ -772,6 +781,15 @@ export default {
|
||||
Vue.set(this.user.achievements, achievement, true);
|
||||
break;
|
||||
}
|
||||
case 'ACHIEVEMENT_PET_SET_COMPLETE': {
|
||||
const { achievement } = notification.data;
|
||||
const upperCaseAchievement = achievement.charAt(0).toUpperCase() + achievement.slice(1);
|
||||
const achievementTitleKey = `achievement${upperCaseAchievement}`;
|
||||
NOTIFICATIONS.ACHIEVEMENT_PET_SET_COMPLETE.label = $t => `${$t('achievement')}: ${$t(achievementTitleKey)}`;
|
||||
this.showNotificationWithModal(notification);
|
||||
Vue.set(this.user.achievements, achievement, true);
|
||||
break;
|
||||
}
|
||||
case 'ACHIEVEMENT': { // generic achievement
|
||||
const { achievement } = notification.data;
|
||||
const upperCaseAchievement = achievement.charAt(0).toUpperCase() + achievement.slice(1);
|
||||
|
||||
Reference in New Issue
Block a user