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

This commit is contained in:
2026-05-27 11:40:35 +02:00
parent a8fab1eb86
commit 428d308ed3
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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