Files

33 lines
2.0 KiB
Markdown

# Shared progression curve
All player levels, gathering/crafting professions, weapon proficiency, learned
spells, and abilities use `XP_next = 100 + 10(L - 2)^2`, where **L is the target
level**. The cost is per level, not cumulative: reaching levels 2, 3, 4, and 5
costs 100, 110, 140, and 190 XP respectively (540 XP total from level 1 to 5).
The authoritative constants live in `server/content/balance.yaml` under `xpCurve`.
Abilities now gain their own XP once per useful attack, using the existing power
XP award of 10. Misses and ineffective healing do not award XP; area ticks do not
multiply awards. Hub/housing and dead characters earn none. Existing single-rank
abilities become rankable up to the provisional 1,000-rank cap. Their copied
per-rank effect scaling now applies as they level. Weapon XP remains separate.
On first restore/import, the versioned migration preserves earned levels and
fractional progress, rounded down to whole XP. For example, level 3 with 100/200
old player XP becomes level 3 with 70/140 XP. Total profession/spell/weapon XP is
rebased to represent the same rank and progress under the new costs. It grants no
stat points, health/mana choices, or other level-up rewards. Repeated restoration,
resurrection, and travel do not repeat the migration; replacement starts fresh.
The skill XP storage bound supports the existing 10,000-level gathering cap.
Old `baseXp` and `xpPerLevel` fields remain readable for migration and wire
compatibility; they no longer tune individual tracks. Control shows the universal
formula instead of misleading per-track XP inputs. Existing maximum levels and
XP rewards remain, except the former single-rank ability limitation above.
Legacy aggregate action counters are still counters, not separate ranked skills.
Upgrade all world owners together before resuming cross-world travel. Older
binaries do not understand the migration version and shared curve. Required local
checks include curve boundaries, multi-level awards, migration idempotence,
high-rank bounds, ability usage, death/travel, and zero XP in hubs/housing.