mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
don't use growl on server (woops)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user