gamer147
81771bb0a0
feat(battle-xp): IBattleXpService with per-mode overrides and auto level-up
- IBattleXpService.GrantAsync mutates viewer.Classes in place; caller SaveChanges
- Resolves win/loss amount from per-mode override or global XpPerWin/XpPerLoss
- Story mode ignores isWin, uses StoryXpPerClear ?? XpPerWin
- Level-up loop consults curve[row.Level].NecessaryExp; carries overflow
- Saturates at max curve level (excess piles in Exp)
- Unknown classId → no-op returning (0, 0, 1), logs Warning
- 10 unit tests (Moq-backed curve stub); DI registered next to InventoryService
- GameConfigurationJsonbTests baseline updated (19 sections)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-04 08:51:43 -04:00
..
2026-06-07 22:43:18 -04:00
2026-06-27 11:07:54 -04:00
2026-06-27 20:06:46 -04:00
2026-06-13 12:16:22 -04:00
2026-06-13 15:59:42 -04:00
2026-05-23 18:14:42 -04:00
2026-06-27 19:35:08 -04:00
2026-07-03 19:18:54 -04:00
2026-06-27 15:40:30 -04:00
2026-06-05 08:04:49 -04:00
2026-07-04 08:51:43 -04:00
2026-06-27 11:02:29 -04:00
2026-07-03 19:18:54 -04:00
2026-06-10 12:29:10 -04:00
2026-07-04 08:51:43 -04:00
2026-06-03 07:50:49 -04:00
2026-06-27 16:33:59 -04:00
2026-06-01 00:41:09 -04:00
2024-09-05 08:32:54 -04:00
2026-06-27 12:01:27 -04:00
2026-07-03 19:18:54 -04:00
2026-05-23 14:18:01 -04:00