|
|
@ -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) {
|
|
|
|