From 93c39e81bddc144edf02ddb8bb55e4ec13f4ed9f Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Fri, 23 Jan 2015 14:59:18 -0600 Subject: [PATCH] Added death sound. Put blank versions in daniel theme --- public/audio/danielTheBard/Death.mp3 | 0 public/audio/danielTheBard/Death.ogg | 0 public/js/controllers/notificationCtrl.js | 1 + 3 files changed, 1 insertion(+) create mode 100644 public/audio/danielTheBard/Death.mp3 create mode 100644 public/audio/danielTheBard/Death.ogg diff --git a/public/audio/danielTheBard/Death.mp3 b/public/audio/danielTheBard/Death.mp3 new file mode 100644 index 0000000000..e69de29bb2 diff --git a/public/audio/danielTheBard/Death.ogg b/public/audio/danielTheBard/Death.ogg new file mode 100644 index 0000000000..e69de29bb2 diff --git a/public/js/controllers/notificationCtrl.js b/public/js/controllers/notificationCtrl.js index dae22b9d0f..6c30b511c2 100644 --- a/public/js/controllers/notificationCtrl.js +++ b/public/js/controllers/notificationCtrl.js @@ -6,6 +6,7 @@ habitrpg.controller('NotificationCtrl', $rootScope.$watch('user.stats.hp', function (after, before) { if (after <= 0){ + $rootScope.playSound('Death'); $rootScope.openModal('death', {keyboard:false, backdrop:'static'}); } if (after == before) return;