Task 2: Crafting - disable Prepare for non-enchanted items, limit Design to owned gear types

This commit is contained in:
Refactoring Agent
2026-04-26 15:42:32 +02:00
parent 9bf6e911f4
commit c8baea4346
2 changed files with 40 additions and 1 deletions
+3
View File
@@ -422,6 +422,9 @@ export function createCraftingSlice(
const instance = state.equipmentInstances[equipmentInstanceId];
if (!instance) return false;
// Don't allow preparing enchanted items - they need to be disenchanted first
if (instance.enchantments.length > 0) return false;
const prepTime = calculatePrepTime(instance.totalCapacity);
const manaCost = calculatePrepManaCost(instance.totalCapacity);