34 lines
1.6 KiB
Markdown
34 lines
1.6 KiB
Markdown
# Task E1 — Data-Driven Dialogues
|
||
|
||
## Scope
|
||
|
||
Implemented E1 only:
|
||
|
||
- Load dialogue JSON definitions into the content catalog and expose them through `get_dialogue`.
|
||
- Add dialogue state/engine support for node traversal, condition-filtered choices, effects, and the merchant shop sentinel.
|
||
- Add the keyboard-driven `DialoguePanel` and connect adjacent NPC interaction to dialogue start, choices, dismissal, and journal events.
|
||
- Route the merchant shop through its dialogue and cover merchant and guide flows end to end.
|
||
- Add unit coverage for loading, filtering, effects, node traversal, and the shop sentinel.
|
||
|
||
No E2 narrative-event/puzzle/quest-board lifecycle or E3 NPC/companion functionality was added.
|
||
|
||
## Verification and capture
|
||
|
||
The first full verification passed with the initial draft. During final scope review, restoring the original dialogue data exposed two unit-test failures because the E1 engine correctly preserves authored choices rather than the draft’s reduced content. The E1 data updates that make the tests exercise the intended merchant/guide effects were restored, and the final verification passed.
|
||
|
||
```text
|
||
- Unit: 142 / 142 tests, 1,092 assertions
|
||
- Integration: 8 / 8 tests, 59,453 assertions
|
||
- E2E: 39 / 39 tests, 398 assertions
|
||
- Visual: passed (initial and exit captures)
|
||
```
|
||
|
||
Visual captures were 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 emitted only pre-existing Godot/GUT third-party UID and resource-cleanup warnings; it reported no script or parse errors.
|