mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Revert "feature: adding hp notification for boss damage" (#8340)
This commit is contained in:
@@ -149,9 +149,6 @@ habitrpg.controller('NotificationCtrl',
|
||||
case 'LOGIN_INCENTIVE':
|
||||
Notification.showLoginIncentive(User.user, notification.data, Social.loadWidgets);
|
||||
break;
|
||||
case 'BOSS_DAMAGE':
|
||||
Notification.bossDamage(notification.data.damageTaken);
|
||||
break;
|
||||
default:
|
||||
if (notification.data.headerText && notification.data.bodyText) {
|
||||
var modalScope = $rootScope.$new();
|
||||
|
||||
@@ -78,13 +78,6 @@ angular.module("habitrpg").factory("Notification",
|
||||
_notify(_sign(val) + " " + _round(val) + " " + window.env.t('health'), 'hp', 'glyphicon glyphicon-heart');
|
||||
}
|
||||
|
||||
function bossDamage(val) {
|
||||
var data = {
|
||||
val: _round(val),
|
||||
};
|
||||
_notify(window.env.t('bossDamageDone', data), 'hp', 'glyphicon glyphicon-heart');
|
||||
}
|
||||
|
||||
function lvl(){
|
||||
_notify(window.env.t('levelUp'), 'lvl', 'glyphicon glyphicon-chevron-up');
|
||||
}
|
||||
@@ -183,6 +176,5 @@ angular.module("habitrpg").factory("Notification",
|
||||
text: text,
|
||||
quest: quest,
|
||||
showLoginIncentive: showLoginIncentive,
|
||||
bossDamage: bossDamage,
|
||||
};
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user