[High] [Bug] Golemancy: enterSpireMode wipes golem designs (should persist across runs) #311
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 §9, §16
Severity: High
Problem:
src/lib/game/stores/combat-descent-actions.ts:256—enterSpireMode()resetsgolemDesigns: {}andgolemLoadout: [], destroying all player-designed golems. The spec says "Loadout persists across rooms but not across spire runs" — designs should persist, only active golems and loadout should reset. Players are forced to redesign golems every run.File:
src/lib/game/stores/combat-descent-actions.ts:256Starting fix. Root cause:
enterSpireModeat line 256 resetsgolemDesigns: {}andgolemLoadout: []. Per spec §9, designs should persist across spire runs — only active golems and loadout should reset. Fix: preserve existing golemDesigns, only reset golemLoadout and activeGolems.Fixed in
combat-descent-actions.ts:256. ChangedgolemDesigns: {}togolemDesigns: s.golemancy?.golemDesigns ?? {}so designs persist across spire runs. OnlygolemLoadoutandactiveGolemsare reset, matching spec §9. All 82 golem-related tests pass.