WIP(tutorial): Award GP and XP

This commit is contained in:
Sabe Jones
2015-08-24 16:02:25 -04:00
parent 8b75de56b6
commit 23259cd456
2 changed files with 28 additions and 7 deletions

View File

@@ -29,7 +29,10 @@ habitrpg.controller('NotificationCtrl',
if (after == before) return;
if (User.user.stats.lvl == 0) return;
var money = after - before;
var bonus = User.user._tmp.streakBonus;
var bonus;
if (User.user._tmp) {
bonus = User.user._tmp.streakBonus || 0;
}
Notification.gp(money, bonus || 0);
//Append Bonus