Skip to content

Creation Flow: Implement Priority Conflict Detection #189

@Jasrags

Description

@Jasrags

Summary

Implement the TODO for priority conflict detection in character creation. Currently hardcoded to always return false, meaning priority conflicts are never detected.

Parent Issue

Location

components/creation/PrioritySelectionCard.tsx:285

// TODO: Implement conflict detection for metatype/magic priority requirements
return false;

Problem

When players assign priorities (A-E) during character creation, certain combinations create conflicts:

  1. Metatype requirements: Some metatypes require minimum priority levels (e.g., Troll might need Priority C or higher for metatype)
  2. Magic/Resonance requirements: Magic users need sufficient priority to access their tradition
  3. Cross-priority dependencies: Choosing a magic-heavy priority affects what metatypes are viable

Currently, players can assign any priority to any category without validation, potentially creating invalid characters.

Expected Behavior

  • When assigning priorities, detect conflicts with already-selected metatype/magic path
  • Show warning/error when conflict detected
  • Prevent or warn about finalizing characters with priority conflicts

Implementation Notes

The function needs to check:

  1. Current metatype selection and its minimum priority requirement
  2. Current magic/resonance path and its minimum priority requirement
  3. Whether the proposed priority assignment would violate these requirements

Acceptance Criteria

  • Priority conflicts are detected when assigning priorities
  • User sees clear feedback when a conflict exists
  • Cannot finalize character with unresolved priority conflicts
  • Existing valid characters are not affected
  • Unit tests cover conflict detection logic

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions