Fix #2048 (streak bonuses not appearing to add up)

This commit is contained in:
Sabe Jones 2014-01-07 11:14:34 -06:00
parent ec236f36d8
commit be2def91f1
2 changed files with 4 additions and 4 deletions

View file

@ -19,10 +19,10 @@ habitrpg.controller('NotificationCtrl',
if (after == before) return;
if (User.user.stats.lvl == 0) return;
var money = after - before;
Notification.gp(money);
var bonus = User.user._tmp.streakBonus;
Notification.gp(money, bonus || 0);
//Append Bonus
var bonus = User.user._tmp.streakBonus;
if ((money > 0) && !!bonus) {
if (bonus < 0.01) bonus = 0.01;

View file

@ -51,8 +51,8 @@ angular.module("notificationServices", [])
if (val < -50) return; // don't show when they level up (resetting their exp)
growl("<i class='icon-star'></i> " + sign(val) + " " + round(val) + " XP", 'xp');
},
gp: function(val) {
growl(sign(val) + " " + coins(val), 'gp');
gp: function(val, bonus) {
growl(sign(val) + " " + coins(val - bonus), 'gp');
},
text: function(val){
growl(val);