From e0a8f6634424f10a22b0a0740e0bbc17534eaa0e Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Tue, 13 May 2025 13:26:32 +0200 Subject: refactor(xp): remove reducer --- exp/functions.go | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'exp') diff --git a/exp/functions.go b/exp/functions.go index c69ef26..2cbe7bf 100644 --- a/exp/functions.go +++ b/exp/functions.go @@ -1,7 +1,6 @@ package exp import ( - "github.com/anhgelus/gokord" "math" "slices" ) @@ -43,14 +42,3 @@ func LevelXP(level uint) uint { math.Pow(float64(5*level), 2), )) } - -func Lose(time uint, xp uint) uint { - if gokord.Debug { - return uint(math.Floor( - math.Pow(float64(time), 3) * math.Pow(10, -2+math.Log(float64(time))) * math.Floor(float64(xp/500)+1), - )) // a little bit faster to lose exp - } - return uint(math.Floor( - math.Pow(float64(time), 2) * math.Pow(10, -2+math.Log(float64(time/85))) * math.Floor(float64(xp/500)+1), - )) -} -- cgit v1.2.3