From e00ea4c2481037b06a749c65f5b4aeb3702d94bc Mon Sep 17 00:00:00 2001 From: Adrien Lemaire Date: Sat, 9 Aug 2014 19:09:58 +0900 Subject: [PATCH] add missing sound actions --- public/js/controllers/notificationCtrl.js | 2 ++ public/js/controllers/tasksCtrl.js | 1 + 2 files changed, 3 insertions(+) diff --git a/public/js/controllers/notificationCtrl.js b/public/js/controllers/notificationCtrl.js index 0c2afc9624..3cdb16d83a 100644 --- a/public/js/controllers/notificationCtrl.js +++ b/public/js/controllers/notificationCtrl.js @@ -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'); } }); diff --git a/public/js/controllers/tasksCtrl.js b/public/js/controllers/tasksCtrl.js index ec44bd0768..130407f9ab 100644 --- a/public/js/controllers/tasksCtrl.js +++ b/public/js/controllers/tasksCtrl.js @@ -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'); };