From 0f5f1ade0b446cffc2a1546dab5e5677f83c520a Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Tue, 13 May 2025 23:44:16 +0200 Subject: perf(xp): simplify function LevelXP --- exp/functions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exp/functions.go') 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), )) } -- cgit v1.2.3