diff options
| author | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-05-13 13:26:32 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-05-13 13:26:32 +0200 |
| commit | e0a8f6634424f10a22b0a0740e0bbc17534eaa0e (patch) | |
| tree | e8cefbe4fbd7ee31349bcdd511230483fdd88385 /exp/functions.go | |
| parent | 5af6bd672c342fc4e7c4cc7bf61efd5026433ead (diff) | |
refactor(xp): remove reducer
Diffstat (limited to 'exp/functions.go')
| -rw-r--r-- | exp/functions.go | 12 |
1 files changed, 0 insertions, 12 deletions
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), - )) -} |
