E3: Implement quest lifecycle #38
-38
@@ -1,38 +0,0 @@
|
||||
# Task E3 — Quest Lifecycle
|
||||
|
||||
## Scope
|
||||
|
||||
Implemented E3 only:
|
||||
|
||||
- Add run-scoped, serializable quest state and a quest manager over the authored ASCII quest catalog.
|
||||
- Support quest acceptance, abandonment, kill and descent objective progress, dialogue-driven objective completion, item removal, completion rewards, and quest-state conditions.
|
||||
- Integrate quest progression with combat deaths, item pickups, floor transitions, dialogue/event effect contexts, and the persistent run journal.
|
||||
- Add an interactive quest-board/journal panel, J toggle, keyboard selection/actions, and a compact HUD active-objective tracker.
|
||||
- Cover state serialization, objective/reward semantics, and live board/journal/delivery gameplay flows with unit and E2E tests.
|
||||
|
||||
No subsequent-slice functionality or unrelated systems were changed.
|
||||
|
||||
## Verification and fixes
|
||||
|
||||
Initial full verification found two E3 lifecycle defects:
|
||||
|
||||
1. `QuestManager.observe()` returned the entire pending change buffer, so a prior acceptance was incorrectly reported as a later item-pickup change. It now returns only changes generated by its current observation while retaining pending changes for journal flushing.
|
||||
2. A quest reward produced through the public game context updated the transient payload but did not immediately persist to `RunState.gold`. The game context now supplies the owning run state and the manager synchronizes the reward there; the normal context flush still synchronizes game state/HUD.
|
||||
|
||||
Final `./scripts/verify.sh` completed successfully:
|
||||
|
||||
```text
|
||||
- Unit: 147 / 147 tests, 1,136 assertions
|
||||
- Integration: 8 / 8 tests, 59,453 assertions
|
||||
- E2E: 43 / 43 tests, 438 assertions
|
||||
- Visual: passed (initial and exit captures)
|
||||
```
|
||||
|
||||
Visual captures were generated and measured successfully:
|
||||
|
||||
```text
|
||||
artifacts/visual-check.png: dungeon_non_black_pixels=489308
|
||||
artifacts/visual-check-exit.png: dungeon_non_black_pixels=489252
|
||||
```
|
||||
|
||||
The final run had no script or parse errors. Godot/GUT invalid-UID and resource-cleanup diagnostics remain non-failing third-party runner noise.
|
||||
Reference in New Issue
Block a user