[priority: medium] Golemancy shows "Slots: 0/—" with em-dash instead of number #198

Closed
opened 2026-05-29 13:05:08 +02:00 by Anexim · 2 comments
Owner

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 of 0/0 because the Fabricator attunement is locked.

Root Cause

  • File: src/components/game/tabs/GolemancyTab.tsx, line 276
  • Display logic: Slots: {enabledCount}/{golemSlots > 0 ? golemSlots : '—'}
  • File: src/lib/game/data/golems/utils.ts, line 8
  • getGolemSlots() returns 0 when fabricatorLevel < 2
  • Starting attunement is Enchanter only (no Fabricator), so fabricatorLevel = 0

Expected Behavior

Should show 0/0 when slots are unavailable, OR display a helpful message like "Unlock Fabricator attunement to gain golem slots"

Fix

Change the display to show 0/0 when golemSlots is 0, or add contextual text explaining why slots are unavailable.

Priority

MEDIUM - Cosmetic, but confusing for new players

**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 of `0/0` because the Fabricator attunement is locked. ### Root Cause - **File:** `src/components/game/tabs/GolemancyTab.tsx`, line 276 - **Display logic:** `Slots: {enabledCount}/{golemSlots > 0 ? golemSlots : '—'}` - **File:** `src/lib/game/data/golems/utils.ts`, line 8 - `getGolemSlots()` returns `0` when `fabricatorLevel < 2` - Starting attunement is Enchanter only (no Fabricator), so `fabricatorLevel = 0` ### Expected Behavior Should show `0/0` when slots are unavailable, OR display a helpful message like "Unlock Fabricator attunement to gain golem slots" ### Fix Change the display to show `0/0` when `golemSlots` is 0, or add contextual text explaining why slots are unavailable. ### Priority MEDIUM - Cosmetic, but confusing for new players
Anexim added the ai:todo label 2026-05-29 13:05:08 +02:00
n8n-gitea was assigned by Anexim 2026-05-29 13:05:08 +02:00
Author
Owner

Starting work on the golemancy em-dash bug. Examining GolemancyTab.tsx and golem slots logic.

Starting work on the golemancy em-dash bug. Examining GolemancyTab.tsx and golem slots logic.
Author
Owner

Fixed the golemancy em-dash bug. Changed the slots display from golemSlots > 0 ? golemSlots : '—' to just golemSlots, so it now shows 0/0 when Fabricator is locked instead of 0/—.

Changes:

  • Simplified the Slots display in GolemancyTab.tsx (line 276)
  • All 896 tests pass, file size 339 lines (under 400 limit)

Commit: 06241e1

Fixed the golemancy em-dash bug. Changed the slots display from `golemSlots > 0 ? golemSlots : '—'` to just `golemSlots`, so it now shows `0/0` when Fabricator is locked instead of `0/—`. Changes: - Simplified the Slots display in GolemancyTab.tsx (line 276) - All 896 tests pass, file size 339 lines (under 400 limit) Commit: 06241e1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#198