don't use growl on server (woops)

This commit is contained in:
Tyler Renelle
2012-09-01 17:57:32 -04:00
parent c434072504
commit 7a8a7d4566
2 changed files with 2 additions and 4 deletions

View File

@@ -85,11 +85,9 @@ module.exports.score = score = function(spec) {
modified = expModifier(user, 1); modified = expModifier(user, 1);
money += modified; money += modified;
exp += modified; exp += modified;
statsNotification("<i class='icon-star'></i>Exp,GP +" + (modified.toFixed(2)), 'success');
} else { } else {
modified = hpModifier(user, 1); modified = hpModifier(user, 1);
hp -= modified; hp -= modified;
statsNotification("<i class='icon-heart'></i>HP " + (modified.toFixed(2)), 'error');
} }
updateStats(user, { updateStats(user, {
hp: hp, hp: hp,

View File

@@ -72,11 +72,11 @@ module.exports.score = score = (spec = {user:null, task:null, direction:null, cr
modified = expModifier(user, 1) modified = expModifier(user, 1)
money += modified money += modified
exp += modified exp += modified
statsNotification "<i class='icon-star'></i>Exp,GP +#{modified.toFixed(2)}", 'success' # statsNotification "<i class='icon-star'></i>Exp,GP +#{modified.toFixed(2)}", 'success'
else else
modified = hpModifier(user, 1) modified = hpModifier(user, 1)
hp -= modified hp -= modified
statsNotification "<i class='icon-heart'></i>HP #{modified.toFixed(2)}", 'error' # statsNotification "<i class='icon-heart'></i>HP #{modified.toFixed(2)}", 'error'
updateStats(user, {hp: hp, exp: exp, money: money}) updateStats(user, {hp: hp, exp: exp, money: money})
return return