diff options
| author | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-05-13 23:44:16 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-05-13 23:44:16 +0200 |
| commit | 0f5f1ade0b446cffc2a1546dab5e5677f83c520a (patch) | |
| tree | 699aca2687a2a98614e1336835a515a93c5fc60d /exp/functions.go | |
| parent | 8f10267e2df7a02ade125f066c17c5fd72ebf159 (diff) | |
perf(xp): simplify function LevelXP
Diffstat (limited to 'exp/functions.go')
| -rw-r--r-- | exp/functions.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exp/functions.go b/exp/functions.go index 720a755..119b6a8 100644 --- a/exp/functions.go +++ b/exp/functions.go @@ -42,7 +42,7 @@ func Level(xp uint) uint { // See Level to get the level with the given XP. func LevelXP(level uint) uint { return uint(math.Floor( - math.Pow(float64(5*level), 2), + 25 * math.Pow(float64(level), 2), )) } |
