Files

43 lines
2.7 KiB
Markdown

# Task F2 — Perks, Races, Classes, and Hero Evolution
## Scope
Implemented only F2 progression behavior:
- Data-backed race/class validation, compatibility checks, affinity recommendations, and creation bonuses.
- Character-creation race selection and recommendation display, with the selected race passed into a new run.
- Data-backed perk ranks, level/rank gates, accumulated modifiers, and mandatory level-3 perk selection.
- A modal level-3 choice panel that captures navigation/confirmation input until a perk is selected and journals both the requirement and selection.
- Data-backed hero/elite eligibility checks and one-time availability notifications, including mapping the current creation archetypes to the ASCII hero definitions' canonical base-archetype IDs.
- Unit coverage for perks, race/class contracts, and hero/elite conditions; real-scene E2E coverage for the floor-three modal flow.
No F3 achievement, title, reward, or achievement UI behavior was added or changed.
## Verification fix
The initial full verification run failed one existing layout test because `character_creation.gd` had been updated to require `RaceOption` and `RecommendationLabel`, but the corresponding scene controls had not been added. This produced null-node script errors while instantiating the creation scene.
The root fix added the missing race controls to `CharacterCreation.tscn`, increased the panel height to accommodate them, wired the selected race through the menu's run-start signal, and validated the submitted race/class pair. The rerun then exposed a hero test regression from applying production archetype aliases to a test-defined `vanguard` hero; eligibility now accepts the exact class ID first and uses aliases only for canonical ASCII definitions.
## Final verification and capture
`git diff --check` passed.
`./scripts/verify.sh` passed with Godot 4.5.0:
- Unit: **164 / 164** tests, **1,243** assertions
- Integration: **10 / 10** tests, **59,462** assertions
- E2E: **48 / 48** tests, **484** assertions
- Visual: passed both Xvfb captures
Captured and validated artifacts (ignored by Git):
- `artifacts/visual-check.png`: `dungeon_non_black_pixels=489308`, `visible_pixels=17524`, `explored_pixels=10438`, `unknown_pixels=366284`
- `artifacts/visual-check-exit.png`: `dungeon_non_black_pixels=489252`, `visible_pixels=17404`, `explored_pixels=17146`, `unknown_pixels=440456`
The runner emitted existing third-party GUT invalid-UID warnings plus Godot resource-cleanup warnings. No application `SCRIPT ERROR` or parse error occurred in the successful final verification.
## Git
This report and all F2 implementation, scene, test, and UID files are included in the local F2 commit. No push and no PR were created.