Adjust experience required for first levels

This commit is contained in:
Phillip Thelen
2019-07-30 18:41:54 +02:00
parent 7ffecf9206
commit ebd41a3163

View File

@@ -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;
}