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/saves level, 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 is experience, not xp. 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 call save-progress on 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 to CharacterStats, 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 full HeroMasteryUI panel. Bar flashes gold on level-up.

Mastery bonuses per hero

#HeroL6L10
0Marauder+8% damage+5% CDR
1Ironclad+10% max HP+8% damage
2Shadowblade+8% damage+8% CDR
3Cleric+15% heal+10% max HP
4Arcanist+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