diff --git a/lib/app/scoring.js b/lib/app/scoring.js index 4ce6d77bf2..0de3bea523 100644 --- a/lib/app/scoring.js +++ b/lib/app/scoring.js @@ -133,7 +133,11 @@ module.exports.score = score = function(spec) { modified = expModifier(user, delta); exp += modified; money += modified; - statsNotification("Exp,GP +" + (modified.toFixed(2)), 'success'); + if (modified > 0) { + statsNotification("Exp,GP +" + (modified.toFixed(2)), 'success'); + } else { + statsNotification("Exp,GP " + (modified.toFixed(2)), 'warning'); + } } else if (type !== 'reward' && type !== 'todo') { modified = hpModifier(user, delta); hp += modified; diff --git a/src/app/scoring.coffee b/src/app/scoring.coffee index 98e03e3aa7..2769d6cc76 100644 --- a/src/app/scoring.coffee +++ b/src/app/scoring.coffee @@ -121,7 +121,11 @@ module.exports.score = score = (spec = {user:null, task:null, direction:null, cr modified = expModifier(user, delta) exp += modified money += modified - statsNotification "Exp,GP +#{modified.toFixed(2)}", 'success' + if modified > 0 + statsNotification "Exp,GP +#{modified.toFixed(2)}", 'success' + else + # unchecking an accidently completed daily/todo + statsNotification "Exp,GP #{modified.toFixed(2)}", 'warning' # Deduct from health (rewards case handled above) else unless type in ['reward', 'todo'] modified = hpModifier(user, delta)