[priority: medium] Golemancy shows "Slots: 0/—" with em-dash instead of number #198
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: Golemancy max slot count displays as em-dash when Fabricator is locked
Bug Summary
On a fresh game start, the Golemancy tab shows
Slots: 0/—instead of0/0because the Fabricator attunement is locked.Root Cause
src/components/game/tabs/GolemancyTab.tsx, line 276Slots: {enabledCount}/{golemSlots > 0 ? golemSlots : '—'}src/lib/game/data/golems/utils.ts, line 8getGolemSlots()returns0whenfabricatorLevel < 2fabricatorLevel = 0Expected Behavior
Should show
0/0when slots are unavailable, OR display a helpful message like "Unlock Fabricator attunement to gain golem slots"Fix
Change the display to show
0/0whengolemSlotsis 0, or add contextual text explaining why slots are unavailable.Priority
MEDIUM - Cosmetic, but confusing for new players
Starting work on the golemancy em-dash bug. Examining GolemancyTab.tsx and golem slots logic.
Fixed the golemancy em-dash bug. Changed the slots display from
golemSlots > 0 ? golemSlots : '—'to justgolemSlots, so it now shows0/0when Fabricator is locked instead of0/—.Changes:
Commit:
06241e1