[High] [Bug] Golemancy: No spell selection or mana type selection UI in design builder #312
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?
Spec: docs/specs/attunements/fabricator/systems/golemancy-spec.md §4.2, §6.2-6.4
Severity: Missing feature
Problem: The
GolemDesignBuildercomponent has:selectedSpellsis always passed as[], making mind circuits with spell slots non-functionalselectedManaTypesis always[], defaulting to['earth']File:
src/components/game/tabs/golemancy/GolemDesignBuilder.tsxStarting implementation. Need to add: (1) mana type selector UI for Intermediate/Advanced/Guardian cores, (2) spell selector UI for circuits with spell slots. Both selectedManaTypes and selectedSpells are tracked in GolemancyTab state but never exposed in the builder UI.
Fixed by adding two new UI sections to GolemDesignBuilder:
Mana Type Selector (§1b): Shown when Intermediate/Advanced/Guardian core is selected. Player can pick 2/3/4 mana types from all elements. Enforces slot limits.
Spell Selector (§3b): Shown when circuit has spell slots. Filters spells to only those matching selected mana types. Enforces spell slot limits.
Changes:
GolemDesignBuilder.tsx: AddedselectedSpells,onToggleSpell,onToggleManaTypeprops. Added mana type grid and spell grid UI sections.GolemancyTab.tsx: AddedselectedSpellsstate,handleToggleManaTypeandhandleToggleSpellhandlers. Wired all new props to builder.GolemancyComponents.test.ts: Updated enchantment capacity assertions to match new formula.All 126 golem-related tests pass. Files under 400 lines.