1.0 KiB
1.0 KiB
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.tsor similar state management for equipmentutils/itemUtils.tsfor item type helper functions
Acceptance Criteria
- 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)
- Player cannot equip any item in offhand while 2-handed weapon is equipped (verify via UI and state checks)
- 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)