22 lines
1006 B
Markdown
22 lines
1006 B
Markdown
# Sub-Task 5: CraftingTab Design Phase Compatibility (Bug 7)
|
|
|
|
## Scope
|
|
- **Components affected**:
|
|
- `components/CraftingTab.tsx` (Design phase section)
|
|
- Enchantment data sources (e.g., `data/enchantments.ts`)
|
|
- Player inventory state (to check owned items)
|
|
- **Files potentially affected**:
|
|
- `utils/craftingUtils.ts` (enchantment compatibility logic)
|
|
- `types/crafting.ts` (enchantment-item compatibility types)
|
|
- `store/inventorySlice.ts` or similar for player item data
|
|
|
|
## Acceptance Criteria
|
|
1. In CraftingTab Design phase, only enchantments compatible with items the player currently owns are shown (verify by checking UI with different inventory states)
|
|
2. Compatibility is determined by enchantment type (e.g., weapon enchantments only show if player owns weapons)
|
|
3. No performance issues when filtering enchantments
|
|
|
|
## Dependencies
|
|
- None (independent, but Sub-Task 6 depends on this if modifying same CraftingTab file)
|
|
|
|
## Estimated Complexity
|
|
- Medium (data filtering + UI update) |