feature: adding hp notification for boss damage (#8249)

* feature: adding hp notification for boss damage. fixes #7749

* Updating boss damage text to 'Damage from Boss' to make it more clear
This commit is contained in:
Travis
2016-12-30 13:29:20 -06:00
committed by Keith Holliday
parent 47d9594679
commit 2a1f52a359
6 changed files with 66 additions and 7 deletions

View File

@@ -78,6 +78,13 @@ 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');
}
@@ -176,5 +183,6 @@ angular.module("habitrpg").factory("Notification",
text: text,
quest: quest,
showLoginIncentive: showLoginIncentive,
bossDamage: bossDamage,
};
}]);