From 2c2621d24e2a03239933575ecddd06b0a3e04949 Mon Sep 17 00:00:00 2001 From: Rene Arumetsa Date: Mon, 4 May 2026 17:48:55 +0300 Subject: [PATCH] Make exp gains less grindy --- core/economy.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/economy.py b/core/economy.py index 12f1599..368def9 100644 --- a/core/economy.py +++ b/core/economy.py @@ -317,16 +317,16 @@ LEVEL_ROLES: list[tuple[int, str]] = [ def get_level(exp: int) -> int: - """Level = max(1, floor(sqrt(exp/10))). - Level 5 @ 250 EXP, 10 @ 1000, 20 @ 4000, 30 @ 9000.""" - return max(1, int(math.sqrt(max(0, exp) / 10))) + """Level = max(1, floor(sqrt(exp/6))). + Level 5 @ 150 EXP, 10 @ 600, 20 @ 2400, 30 @ 5400.""" + return max(1, int(math.sqrt(max(0, exp) / 6))) def exp_for_level(level: int) -> int: - """Minimum cumulative EXP to reach this level.""" + """Minimum cumulative EXP to reach this level. level^2 * 6.""" if level <= 1: return 0 - return level * level * 10 + return level * level * 6 def level_role_name(level: int) -> str: