xp: Modify level requirement curve to be more exponential

master
Luther Wen Xu 2019-11-18 22:39:15 +07:00
parent 614186a4a7
commit fa76951215
Signed by: chanbakjsd
GPG Key ID: B7D77E3E9D102B70
1 changed files with 2 additions and 2 deletions

@ -15,9 +15,9 @@ var levelUpRequirementCache [30]int
func init() {
for i := 1; i <= 30; i++ {
//Constructed on Desmos:
//y=2^{\frac{x}{3}}+.1x^{2}+1.2x-1
//y=2^{\frac{x}{2}}+.1x^{2}+1.2x-1
fi := float64(i)
levelUpRequirementCache[i-1] = int(10000 * (math.Pow(2, fi/3) + 0.1*fi*fi + 1.2*fi - 1))
levelUpRequirementCache[i-1] = int(10000 * (math.Pow(2, fi/2) + 0.1*fi*fi + 1.2*fi - 1))
}
}