From 9d633eceaf73bc0c784f18fb9f93774e229fb98f Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Tue, 17 Sep 2013 12:04:46 -0400 Subject: [PATCH] [#1394] bug fixes --- public/js/controllers/tasksCtrl.js | 2 ++ public/js/services/notificationServices.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/controllers/tasksCtrl.js b/public/js/controllers/tasksCtrl.js index bfee26ebd1..6e93c152dd 100644 --- a/public/js/controllers/tasksCtrl.js +++ b/public/js/controllers/tasksCtrl.js @@ -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) { diff --git a/public/js/services/notificationServices.js b/public/js/services/notificationServices.js index 91ca69d8a1..655f38f20e 100644 --- a/public/js/services/notificationServices.js +++ b/public/js/services/notificationServices.js @@ -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(" " + sign(val) + " " + round(val) + " HP", 'xp'); + growl(" " + sign(val) + " " + round(val) + " XP", 'xp'); }, gp: function(val) { if (User.user.stats.lvl == 0) return;