# Task C6 — Secret Areas, Traps, Shrines, and Quest Boards ## Scope completed C6 adds data-backed special-tile interactions to the existing turn, event-journal, HUD, fog-of-war, and floor-persistence seams. - `FloorState` persists cell-indexed trap, secret, shrine, and quest-board records, and preserves the actor's `trap_skill` in save data. - `TrapEngine` discovers only visible traps when effective perception meets the imported detection DC, disarms discovered adjacent traps with effective trap skill, and triggers an undisarmed trap exactly once on entry. Triggered damage and qualifying imported status effects are applied to the actor and supplied as structured domain-event descriptors. - `SpecialInteractions` reveals visible secrets when their reveal DC is met, changes the revealed map cell to its declared kind, and resolves shrine and quest-board records into their declared action events. - `GameState` exposes contextual prompts and routes the special interactions; `Game` wires the content catalog and trap-entry triggering into the normal input/action journal flow. The renderer displays discovered traps and visible shrines/boards only in current FOV, preserving fog-of-war secrecy. - The HUD provides explicit French interaction prompts for traps, shrines, and quest boards. - A stable textual enemy-ID sort replaces implementation-dependent `StringName` ordering. This fixes the full-suite integration failure in the existing deterministic allied-pathfinding scenario. ## Deliberate delivery boundary This slice **does not implement E1 dialogue**. It also **does not implement E3 quest lifecycle**: reading a quest board emits its data-backed `quest_board_read` event and payload only; it neither accepts nor advances a quest. Shrine use is likewise an isolated data-backed action event, with no implicit reward system. ## Coverage New unit coverage verifies: 1. visible, catalog-backed trap discovery and successful disarming; 2. single trigger damage plus a catalog-backed status effect; 3. visibility- and perception-gated secret revelation and map replacement; and 4. shrine/board action events without quest acceptance state. The new real-input E2E route verifies secret reveal, trap discovery/disarm and HUD prompt, shrine use, board reading, and journal messages in `Game.tscn`. ## Final verification Executed from the C6 worktree with Godot 4.5.0: ```bash scripts/verify.sh ``` | Suite | Tests | Assertions | Result | | --- | ---: | ---: | --- | | Unit | 115 | 906 | Passed | | Integration | 7 | 9,255 | Passed | | E2E | 28 | 287 | Passed | | **Total** | **150** | **10,448** | **Passed** | The full verifier also passed both visual captures: | Capture | Dungeon pixels | Visible | Explored | Unknown fog | | --- | ---: | ---: | ---: | ---: | | `artifacts/visual-check.png` | 489,308 | 17,524 | 10,438 | 366,411 | | `artifacts/visual-check-exit.png` | 489,252 | 17,404 | 17,146 | 440,583 | The run retained pre-existing GUT invalid-UID/resource-exit diagnostics and one existing float/int assertion warning, but reported no `SCRIPT ERROR` or parse error. `artifacts/` is ignored generated output. ## Git This report is written before the local C6 commit. No push or pull request was created.