xpToNextLevel
Calculates the XP required to advance from a given level to the next level.
For levels 1-100: xp_to_next_level(L) = 8.5 * L^3 For levels >100: xp_to_next_level(L) = 8.5 * L^3 * (1 + ((L - 100)^2 / 100))
The soft cap formula ensures: - Continuous at level 100 (multiplier = 1.0) - Quadratic growth beyond 100, making progress increasingly difficult - At level 150, multiplier is 26x on top of the base, making progress nearly impossible
Return
The XP required to reach the next level
Parameters
currentLevel
The player's current level (must be >= 1)