fix: two-handed weapons no longer show off-hand slot option in Equipment tab
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m31s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m31s
This commit is contained in:
@@ -46,9 +46,9 @@ export function getValidSlotsForCategory(category: EquipmentCategory): Equipment
|
||||
|
||||
// Get valid slots for a specific equipment type (considers 2-handed weapons)
|
||||
export function getValidSlotsForEquipmentType(equipType: EquipmentType): EquipmentSlot[] {
|
||||
// 2-handed weapons occupy both main hand and offhand
|
||||
// 2-handed weapons can only be equipped in the main hand (they occupy both hands)
|
||||
if (equipType.twoHanded) {
|
||||
return ['mainHand', 'offHand'];
|
||||
return ['mainHand'];
|
||||
}
|
||||
|
||||
// Otherwise use category-based slots
|
||||
|
||||
Reference in New Issue
Block a user