mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
Removed extra achievement sound (#9763)
This commit is contained in:
@@ -270,9 +270,6 @@ export default {
|
|||||||
if (this.user.needsCron) return;
|
if (this.user.needsCron) return;
|
||||||
this.handleUserNotifications(after);
|
this.handleUserNotifications(after);
|
||||||
},
|
},
|
||||||
userAchievements () {
|
|
||||||
this.playSound('Achievement_Unlocked');
|
|
||||||
},
|
|
||||||
armoireEmpty (after, before) {
|
armoireEmpty (after, before) {
|
||||||
if (after === before || after === false) return;
|
if (after === before || after === false) return;
|
||||||
this.$root.$emit('bv::show::modal', 'armoire-empty');
|
this.$root.$emit('bv::show::modal', 'armoire-empty');
|
||||||
@@ -280,6 +277,7 @@ export default {
|
|||||||
questCompleted () {
|
questCompleted () {
|
||||||
if (!this.questCompleted) return;
|
if (!this.questCompleted) return;
|
||||||
this.$root.$emit('bv::show::modal', 'quest-completed');
|
this.$root.$emit('bv::show::modal', 'quest-completed');
|
||||||
|
this.playSound('Achievement_Unlocked');
|
||||||
},
|
},
|
||||||
invitedToQuest (after) {
|
invitedToQuest (after) {
|
||||||
if (after !== true) return;
|
if (after !== true) return;
|
||||||
@@ -326,10 +324,12 @@ export default {
|
|||||||
|
|
||||||
if (this.questCompleted) {
|
if (this.questCompleted) {
|
||||||
this.$root.$emit('bv::show::modal', 'quest-completed');
|
this.$root.$emit('bv::show::modal', 'quest-completed');
|
||||||
|
this.playSound('Achievement_Unlocked');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.userClassSelect) {
|
if (this.userClassSelect) {
|
||||||
this.$root.$emit('bv::show::modal', 'choose-class');
|
this.$root.$emit('bv::show::modal', 'choose-class');
|
||||||
|
this.playSound('Achievement_Unlocked');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showLevelUpNotifications (newlevel) {
|
showLevelUpNotifications (newlevel) {
|
||||||
|
|||||||
Reference in New Issue
Block a user