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
+1 -1
View File
@@ -1,4 +1,4 @@
# Circular Dependencies
Generated: 2026-05-27T09:18:37.387Z
Generated: 2026-05-27T09:26:33.586Z
No circular dependencies found. ✅
+1 -1
View File
@@ -1,6 +1,6 @@
{
"_meta": {
"generated": "2026-05-27T09:18:35.464Z",
"generated": "2026-05-27T09:26:31.763Z",
"description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.",
"usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry."
},
+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