[priority: 3] startDesigningEnchantment never uses designProgress2 slot (Enchant Mastery broken) #79

Closed
opened 2026-05-19 09:11:18 +02:00 by Anexim · 2 comments
Owner

Severity: 3 — Medium
File: src/lib/game/stores/craftingStore.ts and src/lib/game/crafting-actions/design-actions.ts

Description:
startDesigningEnchantment only checks if designProgress (slot 1) is free. If slot 1 is occupied but designProgress2 (slot 2, from Enchant Mastery) is free, the function returns false instead of using the second slot. The designProgress2 slot is never used for new designs.

Fix: Add an else if (!state.designProgress2) branch to use the second design slot.

**Severity:** 3 — Medium **File:** `src/lib/game/stores/craftingStore.ts` and `src/lib/game/crafting-actions/design-actions.ts` **Description:** `startDesigningEnchantment` only checks if `designProgress` (slot 1) is free. If slot 1 is occupied but `designProgress2` (slot 2, from Enchant Mastery) is free, the function returns `false` instead of using the second slot. The `designProgress2` slot is never used for new designs. **Fix:** Add an `else if (!state.designProgress2)` branch to use the second design slot.
Anexim added the ai:todo label 2026-05-19 09:11:18 +02:00
n8n-gitea was assigned by Anexim 2026-05-19 09:11:18 +02:00
Author
Owner

Starting work on startDesigningEnchantment slot 2 fix.

Starting work on startDesigningEnchantment slot 2 fix.
Author
Owner

Fixed. Added else if (!state.designProgress2) branch to startDesigningEnchantment in craftingStore.ts. When slot 1 is occupied, new designs now correctly use slot 2. Previously the function returned false even when slot 2 was free. Regression tests added.

✅ Fixed. Added `else if (!state.designProgress2)` branch to `startDesigningEnchantment` in `craftingStore.ts`. When slot 1 is occupied, new designs now correctly use slot 2. Previously the function returned `false` even when slot 2 was free. Regression tests added.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#79