feat: validate attribute values against Shadowrun 5e racial maximums (Closes #86) #128

Merged
shahondin1624 merged 1 commits from feature/issue-86-no-attribute-value-validation-against-shadowrun into main 2026-04-04 23:49:10 +02:00
Owner

Summary

  • Add MetatypeAttributeLimits object encoding per-metatype attribute maximums (Human/Elf/Dwarf/Ork/Troll) per Shadowrun 5e rules
  • Wire racial max into AttributeEditDialog via CharacterSheetPage so attributes are validated against metatype-appropriate limits
  • Add augmented mode toggle in the edit dialog allowing values up to racial max + 4, with a visual indicator when exceeding racial max
  • Edge attribute maximums are defined per metatype (7 for Humans) and ready for when Edge editing UI is added
  • Add comprehensive unit tests for MetatypeAttributeLimits

Closes #86

Test plan

  • MetatypeAttributeLimitsTest passes (10 tests covering all metatypes, edge, augmented)
  • Existing EditDialogValidationTest attribute tests still pass
  • Build compiles successfully
## Summary - Add `MetatypeAttributeLimits` object encoding per-metatype attribute maximums (Human/Elf/Dwarf/Ork/Troll) per Shadowrun 5e rules - Wire racial max into `AttributeEditDialog` via `CharacterSheetPage` so attributes are validated against metatype-appropriate limits - Add augmented mode toggle in the edit dialog allowing values up to racial max + 4, with a visual indicator when exceeding racial max - Edge attribute maximums are defined per metatype (7 for Humans) and ready for when Edge editing UI is added - Add comprehensive unit tests for `MetatypeAttributeLimits` Closes #86 ## Test plan - [x] `MetatypeAttributeLimitsTest` passes (10 tests covering all metatypes, edge, augmented) - [x] Existing `EditDialogValidationTest` attribute tests still pass - [x] Build compiles successfully
shahondin1624 added 1 commit 2026-04-04 23:49:04 +02:00
Add MetatypeAttributeLimits with per-metatype attribute maximums per SR5e rules.
Wire racial max into AttributeEditDialog via CharacterSheetPage. Add augmented
mode toggle allowing values up to racial max + 4 with visual indicator.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
shahondin1624 merged commit 32ec4d58ad into main 2026-04-04 23:49:10 +02:00
shahondin1624 deleted branch feature/issue-86-no-attribute-value-validation-against-shadowrun 2026-04-04 23:49:10 +02:00
Sign in to join this conversation.