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