1.4 KiB
1.4 KiB
| id | title | priority | status | scope | owner | updated_at | evidence | |||
|---|---|---|---|---|---|---|---|---|---|---|
| p2-10d | Data: strip legacy flags/can_found_city/can_build_improvements from unit JSON | p2 | done | game1 | 2026-04-26 |
|
Summary
All unit JSON files under public/games/age-of-dwarves/data/units/ have legacy fields flags, can_found_city, and can_build_improvements removed (they were superseded by the keywords array). The test test_no_unit_has_legacy_flags_field was replaced from a pending() stub to a real assertion loop that iterates every unit JSON file and verifies none of the three keys are present.
Acceptance
- ✓ All unit JSON files have
flags,can_found_city,can_build_improvementsremoved — grep returns 0 hits - ✓
test_unit_actions.gd:test_no_unit_has_legacy_flags_fieldpasses with 0 failures — apricot: 15/15 passed - ✓ No other test or runtime code reads these removed fields — grep of src/game/engine/src/ and src/simulator/ returns 0 hits for these field names