Fix inconsistent magic number in skill/exp calculation (#434)

This commit is contained in:
hydroflame
2023-03-20 05:16:26 -04:00
committed by GitHub
parent 1ef99f0c35
commit 7ee36cf22c

View File

@ -3,7 +3,7 @@
* stat level. Stat-agnostic (same formula for every stat)
*/
export function calculateSkill(exp: number, mult = 1): number {
return Math.max(Math.floor(mult * (32 * Math.log(exp + 534.5) - 200)), 1);
return Math.max(Math.floor(mult * (32 * Math.log(exp + 534.6) - 200)), 1);
}
export function calculateExp(skill: number, mult = 1): number {