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:
@@ -1,4 +1,4 @@
|
|||||||
# Circular Dependencies
|
# Circular Dependencies
|
||||||
Generated: 2026-05-27T09:18:37.387Z
|
Generated: 2026-05-27T09:26:33.586Z
|
||||||
|
|
||||||
No circular dependencies found. ✅
|
No circular dependencies found. ✅
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"_meta": {
|
"_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.",
|
"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."
|
"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."
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -46,9 +46,9 @@ export function getValidSlotsForCategory(category: EquipmentCategory): Equipment
|
|||||||
|
|
||||||
// Get valid slots for a specific equipment type (considers 2-handed weapons)
|
// Get valid slots for a specific equipment type (considers 2-handed weapons)
|
||||||
export function getValidSlotsForEquipmentType(equipType: EquipmentType): EquipmentSlot[] {
|
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) {
|
if (equipType.twoHanded) {
|
||||||
return ['mainHand', 'offHand'];
|
return ['mainHand'];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise use category-based slots
|
// Otherwise use category-based slots
|
||||||
|
|||||||
Reference in New Issue
Block a user