mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
add missing sound actions
This commit is contained in:
parent
d7aaec2262
commit
e00ea4c248
2 changed files with 3 additions and 0 deletions
|
|
@ -85,6 +85,7 @@ habitrpg.controller('NotificationCtrl',
|
|||
// Keep support for another type of drops that might be added
|
||||
Notification.drop(User.user._tmp.drop.dialog);
|
||||
}
|
||||
$rootScope.playSound('Item_Drop');
|
||||
});
|
||||
|
||||
$rootScope.$watch('user.achievements.streak', function(after, before){
|
||||
|
|
@ -144,6 +145,7 @@ habitrpg.controller('NotificationCtrl',
|
|||
if (after == before) return;
|
||||
if (after > before) {
|
||||
Notification.lvl();
|
||||
$rootScope.playSound('Level_Up');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -157,6 +157,7 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
|
|||
|
||||
$scope.buy = function(item) {
|
||||
User.user.ops.buy({params:{key:item.key}});
|
||||
$rootScope.playSound('Reward');
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue