mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Adjust experience required for first levels
This commit is contained in:
@@ -23,6 +23,11 @@ export function capByLevel (lvl) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export function toNextLevel (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;
|
return Math.round((Math.pow(lvl, 2) * 0.25 + 10 * lvl + 139.75) / 10) * 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user