adjusted level scaling

This commit is contained in:
Miodec 2022-08-02 21:14:52 +02:00
parent a5979abe7a
commit b364c90653

View file

@ -1188,15 +1188,11 @@ export async function getDiscordAvatarUrl(
}
export function getLevel(xp: number): number {
return (
Math.log(1 - ((1 - 1.02906509415213) * xp) / 100) /
Math.log(1.02906509415213) +
1
);
return Math.log(1 - ((1 - 1.0545) * xp) / 100) / Math.log(1.0545) + 1;
}
export function getXpForLevel(level: number): number {
return Math.round(100 * Math.pow(1.02906509415213, level - 1));
return Math.round(100 * Math.pow(1.0545, level - 1));
}
export async function promiseAnimation(