mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 23:40:25 +00:00
don't use growl on server (woops)
This commit is contained in:
parent
c434072504
commit
7a8a7d4566
2 changed files with 2 additions and 4 deletions
|
|
@ -85,11 +85,9 @@ module.exports.score = score = function(spec) {
|
|||
modified = expModifier(user, 1);
|
||||
money += modified;
|
||||
exp += modified;
|
||||
statsNotification("<i class='icon-star'></i>Exp,GP +" + (modified.toFixed(2)), 'success');
|
||||
} else {
|
||||
modified = hpModifier(user, 1);
|
||||
hp -= modified;
|
||||
statsNotification("<i class='icon-heart'></i>HP " + (modified.toFixed(2)), 'error');
|
||||
}
|
||||
updateStats(user, {
|
||||
hp: hp,
|
||||
|
|
|
|||
|
|
@ -72,11 +72,11 @@ module.exports.score = score = (spec = {user:null, task:null, direction:null, cr
|
|||
modified = expModifier(user, 1)
|
||||
money += 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
|
||||
modified = hpModifier(user, 1)
|
||||
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})
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue