[priority: 3] startDesigningEnchantment never uses designProgress2 slot (Enchant Mastery broken) #79
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: 3 — Medium
File:
src/lib/game/stores/craftingStore.tsandsrc/lib/game/crafting-actions/design-actions.tsDescription:
startDesigningEnchantmentonly checks ifdesignProgress(slot 1) is free. If slot 1 is occupied butdesignProgress2(slot 2, from Enchant Mastery) is free, the function returnsfalseinstead of using the second slot. ThedesignProgress2slot is never used for new designs.Fix: Add an
else if (!state.designProgress2)branch to use the second design slot.Starting work on startDesigningEnchantment slot 2 fix.
✅ Fixed. Added
else if (!state.designProgress2)branch tostartDesigningEnchantmentincraftingStore.ts. When slot 1 is occupied, new designs now correctly use slot 2. Previously the function returnedfalseeven when slot 2 was free. Regression tests added.