fix: prevent non-combat room repeated rewards during descent (Issue #382)
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m24s

- Wrap library XP grant in progress < required guard so completed rooms don't grant XP every tick
- Add early return in treasure room tick when progress >= required to skip loot processing
- Initialize non-combat rooms (library, treasure, recovery) during descent in onEnterRoomDescend
- Add regression test file: non-combat-room-reward-guards.test.ts (8 tests)
This commit is contained in:
2026-06-12 14:18:04 +02:00
parent 58181139d0
commit fde5911780
6 changed files with 395 additions and 27 deletions
+1
View File
@@ -239,6 +239,7 @@ Mana-Loop/
│ │ │ │ ├── mana-utils.test.ts
│ │ │ │ ├── melee-auto-attack.test.ts
│ │ │ │ ├── melee-defense-bypass.test.ts
│ │ │ │ ├── non-combat-room-reward-guards.test.ts
│ │ │ │ ├── pact-utils.test.ts
│ │ │ │ ├── paused-conversion-dedup.test.ts
│ │ │ │ ├── persistence.test.ts