Progression & Hero Mastery
Two progression tracks: the account/character level (XP, gold, stats) and per-hero mastery that grants passive bonuses as you play a class.
Character progression
PlayerProgressManagerâ client singleton; fetches/saveslevel,experience,gold. The XP bar and level-up screen fire on kill;SaveProgress()posts on level-up and hub return (not per kill). DB column isexperience, notxp. See Database Schema.CharacterSheetUIâ the character sheet (stats/level).XpBar,GoldHUDâ HUD readouts.- Kill rewards (XP + gold + loot) are awarded atomically server-side by
POST /api/combat/killâ do not also callsave-progresson kill. See Auth & Game API.
Hero mastery
HeroMasteryManagerâ self-bootstrapping client singleton. Fetches all 5 hero mastery rows, tracks XP/level locally, applies L6 and L10 passive bonuses toCharacterStats, and posts XP awards. The mastery endpoints are live (GET /api/mastery/:characterId,POST /api/mastery/award). (The in-code comment calling them "not yet live" is stale â verified live on the server.)HeroMasteryHUDâ slim XP bar for the current class above the ability bar; H toggles the fullHeroMasteryUIpanel. Bar flashes gold on level-up.
Mastery bonuses per hero
| # | Hero | L6 | L10 |
|---|---|---|---|
| 0 | Marauder | +8% damage | +5% CDR |
| 1 | Ironclad | +10% max HP | +8% damage |
| 2 | Shadowblade | +8% damage | +8% CDR |
| 3 | Cleric | +15% heal | +10% max HP |
| 4 | Arcanist | +8% CDR | +10% damage |
âšī¸ Leaderboards exist server-side
GET /api/leaderboard/{damage,healing,mastery,waves} are live on the server, but there is no client consumer for them in this repo yet. See Implementation Status.
Related: Heroes & Classes ¡ Loot, Inventory & Crafting ¡ Auth & Game API ¡ Combat Design Bible