mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
Add debug button to hand out levels one at a time
This commit is contained in:
parent
a854109fcd
commit
9c5f1c2150
2 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||
});
|
||||
}
|
||||
}])
|
||||
|
|
@ -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()')
|
||||
|
|
|
|||
Loading…
Reference in a new issue