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-05-24 00:17:28 -04:00
2024-09-07 22:14:24 -04:00
2026-07-03 19:18:54 -04:00
2026-06-12 11:48:20 -04:00
2026-05-27 14:07:42 -04:00
2026-05-28 09:11:21 -04:00
2024-09-07 22:14:24 -04:00
2026-06-08 20:35:59 -04:00
2026-06-04 21:49:43 -04:00
2026-07-03 19:18:54 -04:00
2026-06-27 20:06:46 -04:00
2024-09-05 08:32:54 -04:00
2026-06-10 12:29:10 -04:00
2026-06-27 19:35:08 -04:00
2026-06-03 20:15:48 -04:00
2026-07-04 02:07:41 -04:00
2026-06-01 00:13:42 -04:00
2026-07-04 08:51:43 -04:00
2026-07-04 02:07:41 -04:00
2024-09-05 08:32:54 -04:00