Add debug button to hand out levels one at a time

This commit is contained in:
Sabe Jones 2013-12-30 22:56:01 -06:00
parent a854109fcd
commit 9c5f1c2150
2 changed files with 7 additions and 0 deletions

View file

@ -62,4 +62,9 @@ habitrpg.controller("FooterCtrl", ['$scope', '$rootScope', 'User', '$http', 'Not
'stats.mp': User.user.stats.mp + 10000
});
}
$scope.addOneLevel = function(){
User.set({
'stats.exp': User.user.stats.exp + (Math.round(((Math.pow(User.user.stats.lvl, 2) * 0.25) + (10 * User.user.stats.lvl) + 139.75) / 10) * 10)
});
}
}])

View file

@ -73,5 +73,7 @@ footer.footer(ng-controller='FooterCtrl')
a.btn(ng-click='addTenGems()') +10 Gems
li
a.btn(ng-click='addLevelsAndGold()') +Exp +GP
li
a.btn(ng-click='addOneLevel()') +1 Level
div(ng-init='deferredScripts()')