[priority: medium] EffectSelector shows "Learn Enchanting skill" instead of checking attunement level #188
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?
Bug: EffectSelector shows outdated "Learn Enchanting skill" message
Description
In the Crafting tab > Enchanter subtab > Design phase, the EffectSelector component shows:
This message is outdated — there is no longer an "Enchanting skill" in the game. The game now uses attunements (Enchanter attunement level).
Root Cause Analysis
In
EffectSelector.tsxline 29-33:The
enchantingLevelprop is passed fromEnchantmentDesigner.tsxas a hardcoded0:So the condition
enchantingLevel < 0is ALWAYS true, and the message is always shown — even though the player starts with Enchanter attunement level 1.Affected Files
src/components/game/crafting/EnchantmentDesigner/EffectSelector.tsx— the conditional displaysrc/components/game/crafting/EnchantmentDesigner.tsx— passesenchantingLevel={0}Steps to Reproduce
Expected Behavior
Suggested Fix Direction
enchantingLevelwith the actual Enchanter attunement level fromuseAttunementStoreStarting work on issue #188. Root cause identified:
EnchantmentDesigner.tsxpassesenchantingLevel={0}(hardcoded), so the "Learn Enchanting skill" message always shows. Fix: read actual Enchanter attunement level fromuseAttunementStore.✅ Fixed.
EnchantmentDesigner.tsxnow reads the actual Enchanter attunement level fromuseAttunementStoreinstead of hardcodingenchantingLevel={0}. The EffectSelector now shows immediately since the player starts with Enchanter level 1.