mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
[#1394] bug fixes
This commit is contained in:
parent
0fc413f3b7
commit
9d633eceaf
2 changed files with 3 additions and 1 deletions
|
|
@ -35,6 +35,8 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User', '
|
|||
if (task.type === "reward" && User.user.stats.gp < task.value)
|
||||
return Notification.text('Not enough GP.');
|
||||
Algos.score(User.user, task, direction);
|
||||
User.log({op: "score", data: task, dir: direction});
|
||||
|
||||
};
|
||||
|
||||
$scope.addTask = function(list) {
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ angular.module("notificationServices", [])
|
|||
exp: function(val) {
|
||||
if (User.user.stats.lvl == 0) return;
|
||||
if (val < -50) return; // don't show when they level up (resetting their exp)
|
||||
growl("<i class='icon-heart'></i> " + sign(val) + " " + round(val) + " HP", 'xp');
|
||||
growl("<i class='icon-star'></i> " + sign(val) + " " + round(val) + " XP", 'xp');
|
||||
},
|
||||
gp: function(val) {
|
||||
if (User.user.stats.lvl == 0) return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue