aboutsummaryrefslogtreecommitdiff
path: root/xp/functions.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-15 16:12:19 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-15 16:12:19 +0200
commit9e6a5ce1d37d07e22383e2f6507117cc8e6ff85c (patch)
tree7fae4d58183da89f9f1517d5a1852d63043785c1 /xp/functions.go
parentbeb0ea0ca44c96083a2ba2f683accc68ad30f1b1 (diff)
feat(level): update roles on new level
Diffstat (limited to 'xp/functions.go')
-rw-r--r--xp/functions.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xp/functions.go b/xp/functions.go
index e6979c0..196c3d3 100644
--- a/xp/functions.go
+++ b/xp/functions.go
@@ -28,6 +28,6 @@ func XPForLevel(level uint) uint {
func Lose(time uint, xp uint) uint {
return uint(math.Floor(
- math.Pow(float64(time), 2) * math.Pow(10, -2+math.Log(float64(time/85))) * math.Floor(float64(time/500)),
+ math.Pow(float64(time), 2) * math.Pow(10, -2+math.Log(float64(time/85))) * math.Floor(float64(xp/500)),
))
}