xp: Nerf spam XP

master
Luther Wen Xu 2019-11-19 15:14:26 +07:00
parent f165fa1516
commit 9956606bc7
Signed by: chanbakjsd
GPG Key ID: B7D77E3E9D102B70
1 changed files with 2 additions and 2 deletions

@ -81,8 +81,8 @@ func calculateIncrement(discordID string) int {
} }
//Constructed on Desmos: //Constructed on Desmos:
//y=\frac{100}{\left(1+e^{-\left(x-5\right)}\right)} //y=\frac{100}{\left(1+e^{-\left(\frac{x}{2}-5\right)}\right)}
return int(100 / (1 + math.Pow(math.E, -(delta.Seconds()-5)))) return int(100 / (1 + math.Pow(math.E, -((delta.Seconds()/2)-5))))
} }
func convertXPIntoLevel(xp int) (int, int) { func convertXPIntoLevel(xp int) (int, int) {