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
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:
@@ -1,5 +1,5 @@
|
||||
# Circular Dependencies
|
||||
Generated: 2026-06-12T10:30:18.304Z
|
||||
Generated: 2026-06-12T10:39:16.751Z
|
||||
Found: 4 circular chain(s) — these MUST be fixed before modifying involved files.
|
||||
|
||||
1. 1) data/guardian-encounters.ts > data/guardian-procedural.ts
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"_meta": {
|
||||
"generated": "2026-06-12T10:30:16.054Z",
|
||||
"generated": "2026-06-12T10:39:14.588Z",
|
||||
"description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.",
|
||||
"usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry."
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user