2.3 KiB
2.3 KiB
Task E5 — Recruitable Crawler Party
Scope
Implemented E5 only:
- Added run-scoped
PartyStatefor an uncapped, recruitment-order roster of living crawler actors. - Wired the existing
join_partydialogue effect to recruit the active NPC, reject invalid/duplicate recruits, and require one deterministic, unblocked orthogonal placement next to the player. - Added deterministic party following after player actions. Members resolve in recruitment order, use existing pathfinding, and never enter player, enemy, party, or other supplied blocked cells.
- Added visible party actor views and a
Gparty panel listing each recruited crawler and current HP/status. - Added unit coverage for recruitment placement/refusal and turn order/collision safety, plus an E2E dialogue-to-recruitment-to-panel flow.
No unrelated gameplay systems were changed.
Verification fixes
The first ./scripts/verify.sh run found two E5 failures:
test_recruit_refuses_duplicate_or_surrounded_crawler_without_mutating_the_partyaccepted a recruit when the four orthogonal cells around the player were blocked. The cause was a breadth-first placement fallback that searched beyond the immediate party formation cells. Recruitment now checks only the preferred adjacent orthogonal cell, then the deterministic orthogonal neighbor order, and refuses when none are free.test_wandering_crawler_dialogue_recruits_visible_party_member_and_opens_party_panelcould not find the expected actor view node. The view-name normalization removed the hyphen before capitalization, yieldingCrawlerine2e. It now preserves a word boundary during capitalization, yielding the stableCrawlerE2enode name.
Final verification
Executed successfully with Godot 4.5:
./scripts/verify.sh
- Unit: 154 / 154 tests, 1,182 assertions
- Integration: 10 / 10 tests, 59,462 assertions
- E2E: 46 / 46 tests, 463 assertions
- Visual: passed (normal and exit captures)
The existing GUT third-party UID warnings and Godot resource-cleanup warnings were emitted by the runner but did not cause verification failure. The final runner result was:
verify: unit, integration, E2E, and visual checks passed
Git
All intended E5 implementation, test, scene, UID, and this root report files are included in the local commit. No push or PR was created.