Shows quest progress notification when completing task #7922 (#7951)

This commit is contained in:
Tom Gamble
2016-09-23 21:41:31 -04:00
committed by Blade Barringer
parent bccdf4e989
commit b54441a637
8 changed files with 73 additions and 3 deletions

View File

@@ -56,6 +56,10 @@ angular.module("habitrpg").factory("Notification",
_notify(val, 'drop', dropClass);
}
function quest(type, val) {
_notify(window.env.t(type, { val: val }), 'success');
}
function exp(val) {
if (val < -50) return; // don't show when they level up (resetting their exp)
_notify(_sign(val) + " " + _round(val) + " " + window.env.t('experience'), 'xp', 'glyphicon glyphicon-star');
@@ -147,6 +151,7 @@ angular.module("habitrpg").factory("Notification",
markdown: markdown,
mp: mp,
streak: streak,
text: text
text: text,
quest: quest
};
}]);