add missing sound actions

This commit is contained in:
Adrien Lemaire 2014-08-09 19:09:58 +09:00
parent d7aaec2262
commit e00ea4c248
2 changed files with 3 additions and 0 deletions

View file

@ -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');
}
});

View file

@ -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');
};