From 9956606bc71cccecd9684defaa62eef4b24f3f09 Mon Sep 17 00:00:00 2001 From: Luther Wen Xu Date: Tue, 19 Nov 2019 15:14:26 +0800 Subject: [PATCH] xp: Nerf spam XP --- xp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xp.go b/xp.go index e1da77a..bd8906f 100644 --- a/xp.go +++ b/xp.go @@ -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) {