Wiki/Progression/XP & Leveling

XP & Leveling

Skills and characters level up by accumulating XP. The XP curve follows a power function, so higher levels require exponentially more XP.

Skill XP Formula

The total XP required to reach a given skill level uses a power curve with a reduced base for early levels (1 to 9) so new players progress faster:

base = min(100, level × 10)
xpForLevel(level) = floor(base × level^2) // level 1 = 0 XP

At level 10 and above the base reaches 100 and the curve is unchanged.

Level 1 requires 0 XP (starting level). The maximum skill level is 100.

Level-from-XP Inverse

To determine what level a given XP total corresponds to, the game iterates from level 1 upward until xpForLevel(level + 1)exceeds the player’s total XP. This gives the highest level the player has fully reached.

Character XP

Skill XP also contributes to your overall character level. After efficiency is applied to the skill XP gain, a fraction is converted to character XP:

characterXp = floor(skillXpAfterEfficiency × 0.3) // XP_RATIO

Character level uses the same xpForLevel formula with a max level of 100. Since character XP accumulates from all skill training, character level naturally lags behind individual skill levels.

XP Table

Total XP required to reach each sample level, plus the XP needed for the next actual level:

LevelTotal XP RequiredXP to Next Level
1080
280190
3270370
51,250910
73,4301,690
1010,0002,100
2040,0004,100
3090,0006,100
40160,0008,100
50250,00010,100
60360,00012,100
70490,00014,100
80640,00016,100
90810,00018,100
1001,000,000Max

Constants Reference

ConstantValueDescription
XP_BASE100Base multiplier for the XP curve (at level 10+)
XP_EARLY_LEVEL_SCALE10Per-level base scale for levels 1-9 (effective base = min(XP_BASE, level × scale))
XP_EXPONENT2Power exponent controlling curve steepness
MAX_LEVEL100Maximum skill level
XP_RATIO0.3Fraction of skill XP converted to character XP
CHARACTER_MAX_LEVEL100Maximum character level