feat: add character creation wizard with priority-based workflow (Closes #100) #110

Merged
shahondin1624 merged 1 commits from feature/issue-100-character-creation-workflow-with-build-points-kar-1775326421 into main 2026-04-04 20:21:15 +02:00
Owner

Summary

  • Implement a multi-step character creation wizard following Shadowrun 5e priority-based generation rules
  • The wizard guides players through priority selection (A-E), metatype/attribute allocation, skill allocation, and a summary/review step with validation
  • Integrates into app navigation (drawer + rail + permanent drawer) and produces a valid ShadowrunCharacter on finalization

Closes #100

Changes

New Files

  • model/creation/PriorityTable.kt -- Priority levels, categories, SR5 lookup tables
  • model/creation/MetatypeLimits.kt -- Racial attribute min/max limits per metatype
  • model/creation/CharacterCreationState.kt -- Wizard state with point tracking, validation, and character building
  • viewmodel/CharacterCreationViewModel.kt -- ViewModel managing wizard state and actions
  • lib/components/creation/PrioritySelectionStep.kt -- Priority assignment UI with FilterChips
  • lib/components/creation/AttributeAllocationStep.kt -- Metatype selector + attribute +/- allocators
  • lib/components/creation/SkillAllocationStep.kt -- Skill point allocation grouped by attribute
  • lib/components/creation/CreationSummaryStep.kt -- Character info fields + full build review + validation warnings
  • lib/components/creation/CharacterCreationWizard.kt -- Wizard container with step navigation

Modified Files

  • AppRoutes.kt -- Added CHARACTER_CREATION route
  • App.kt -- Added navigation entries and NavHost composable for creation wizard
  • TestTags.kt -- Added test tags for all creation wizard components

Test Plan

  • Navigate to Create Character from the drawer/rail
  • Assign all 5 priority levels (A-E) to categories, verify no duplicates
  • Select metatype and verify attribute limits update correctly
  • Allocate attribute points, verify remaining counter decreases
  • Allocate skill points, verify remaining counter decreases
  • Verify validation warnings appear for over-allocated or under-allocated builds
  • Fill in character info (name, concept, gender, age)
  • Finalize character and verify it loads in the character sheet
  • Cancel creation and verify return to character sheet

🤖 Generated with Claude Code

## Summary - Implement a multi-step character creation wizard following Shadowrun 5e priority-based generation rules - The wizard guides players through priority selection (A-E), metatype/attribute allocation, skill allocation, and a summary/review step with validation - Integrates into app navigation (drawer + rail + permanent drawer) and produces a valid ShadowrunCharacter on finalization Closes #100 ## Changes ### New Files - `model/creation/PriorityTable.kt` -- Priority levels, categories, SR5 lookup tables - `model/creation/MetatypeLimits.kt` -- Racial attribute min/max limits per metatype - `model/creation/CharacterCreationState.kt` -- Wizard state with point tracking, validation, and character building - `viewmodel/CharacterCreationViewModel.kt` -- ViewModel managing wizard state and actions - `lib/components/creation/PrioritySelectionStep.kt` -- Priority assignment UI with FilterChips - `lib/components/creation/AttributeAllocationStep.kt` -- Metatype selector + attribute +/- allocators - `lib/components/creation/SkillAllocationStep.kt` -- Skill point allocation grouped by attribute - `lib/components/creation/CreationSummaryStep.kt` -- Character info fields + full build review + validation warnings - `lib/components/creation/CharacterCreationWizard.kt` -- Wizard container with step navigation ### Modified Files - `AppRoutes.kt` -- Added CHARACTER_CREATION route - `App.kt` -- Added navigation entries and NavHost composable for creation wizard - `TestTags.kt` -- Added test tags for all creation wizard components ## Test Plan - [ ] Navigate to Create Character from the drawer/rail - [ ] Assign all 5 priority levels (A-E) to categories, verify no duplicates - [ ] Select metatype and verify attribute limits update correctly - [ ] Allocate attribute points, verify remaining counter decreases - [ ] Allocate skill points, verify remaining counter decreases - [ ] Verify validation warnings appear for over-allocated or under-allocated builds - [ ] Fill in character info (name, concept, gender, age) - [ ] Finalize character and verify it loads in the character sheet - [ ] Cancel creation and verify return to character sheet 🤖 Generated with [Claude Code](https://claude.com/claude-code)
shahondin1624 added 1 commit 2026-04-04 20:21:08 +02:00
Implement a multi-step character creation wizard following Shadowrun 5e
priority-based generation rules. The wizard guides players through:
- Priority selection (A-E) for Metatype, Attributes, Magic, Skills, Resources
- Metatype selection with racial attribute limits
- Attribute point allocation within racial min/max bounds
- Skill point allocation from the skills pool
- Summary/review with validation warnings and character info entry

The wizard integrates into the app navigation (drawer + rail) and produces
a valid ShadowrunCharacter on finalization.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
shahondin1624 merged commit 2707e4f265 into main 2026-04-04 20:21:15 +02:00
shahondin1624 deleted branch feature/issue-100-character-creation-workflow-with-build-points-kar-1775326421 2026-04-04 20:21:15 +02:00
Sign in to join this conversation.