aboutsummaryrefslogtreecommitdiff
path: root/xp
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-15 19:10:21 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-15 19:10:21 +0200
commit84bf4caed210b442f75e9e55d4c69b6ca9c6a5c9 (patch)
tree0e71708613781f2c8a11d8dbc61025c3fd11a923 /xp
parent0a6ecf6af7dc8df0a2255ddb7c022cfad6452493 (diff)
feat(xp): add +1 in lose function xp part
Diffstat (limited to 'xp')
-rw-r--r--xp/functions.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xp/functions.go b/xp/functions.go
index 196c3d3..63c7fb7 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(xp/500)),
+ math.Pow(float64(time), 2) * math.Pow(10, -2+math.Log(float64(time/85))) * math.Floor(float64(xp/500)+1),
))
}