mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
Adjust experience required for first levels
This commit is contained in:
parent
7ffecf9206
commit
ebd41a3163
1 changed files with 5 additions and 0 deletions
|
|
@ -23,6 +23,11 @@ export function capByLevel (lvl) {
|
|||
*/
|
||||
|
||||
export function toNextLevel (lvl) {
|
||||
if (lvl < 5) {
|
||||
return 25 * lvl;
|
||||
} else if (lvl === 5) {
|
||||
return 150;
|
||||
}
|
||||
return Math.round((Math.pow(lvl, 2) * 0.25 + 10 * lvl + 139.75) / 10) * 10;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue