Files
Mana-Loop/docs/task3/subtask_4.md
T
Refactoring Agent 06778f96b3
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 6m42s
Task 3: Step 2 complete - plan sub-tasks for bug fixes
2026-04-27 10:53:08 +02:00

22 lines
1.0 KiB
Markdown

# Sub-Task 4: EquipmentTab 2H Offhand Disable (Bug 6)
## Scope
- **Components affected**:
- `components/EquipmentTab.tsx` (offhand slot logic)
- Equipment slot rendering components (e.g., `EquipmentSlot.tsx`)
- Item type checking logic (to detect 2-handed weapons)
- **Files potentially affected**:
- `types/items.ts` (item type definitions for 2-handed weapons)
- `store/equipmentSlice.ts` or similar state management for equipment
- `utils/itemUtils.ts` for item type helper functions
## Acceptance Criteria
1. When a 2-handed staff (or any 2-handed weapon) is equipped in mainhand, offhand slot is visibly disabled/occupied (verify visually: grayed out, tooltip indicating why)
2. Player cannot equip any item in offhand while 2-handed weapon is equipped (verify via UI and state checks)
3. Equipping a 2-handed weapon automatically clears any existing offhand item (if required by game logic)
## Dependencies
- None (independent sub-task)
## Estimated Complexity
- Medium (item type logic + UI state management)