fix: complete golemancy component-based redesign cleanup
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m18s

- Fix summonGolemsForRoom to use golemLoadout instead of removed enabledGolems
- Fix discBonus hardcoded to 0 in golem-combat.ts pipeline (now computed from discipline effects)
- Remove deprecated types: SummonedGolem, ActiveGolem, GolemDef
- Remove legacy GolemancyState fields: enabledGolems, summonedGolems, legacyActiveGolems
- Remove orphaned store actions: toggleGolem, setEnabledGolems
- Delete orphaned legacy data files: base-golems.ts, elemental-golems.ts, hybrid-golems.ts
- Update GolemDebugSection to use new golemLoadout system
- Update golemancy-spec.md §17 to reflect all features as complete
- Update all test files to match new type shapes
- All 958 tests passing
This commit is contained in:
2026-06-06 18:37:09 +02:00
parent bd15df85ff
commit 9d4b3f3c69
28 changed files with 89 additions and 443 deletions
+8 -9
View File
@@ -154,17 +154,16 @@ describe('ElementDebugSection store interactions', () => {
});
describe('GolemDebugSection store interactions', () => {
it('setEnabledGolems is callable with all golem IDs', () => {
const mockSet = vi.fn();
const allIds = ['stoneGolem', 'fireGolem'];
mockSet(allIds);
expect(mockSet).toHaveBeenCalledWith(allIds);
it('addGolemDesign is callable', () => {
const mockAdd = vi.fn();
mockAdd({ id: 'test', name: 'Test', coreId: 'basic', frameId: 'earth', mindCircuitId: 'simple', enchantmentIds: [], selectedManaTypes: [], selectedSpells: [] });
expect(mockAdd).toHaveBeenCalled();
});
it('setEnabledGolems is callable with empty array to disable all', () => {
const mockSet = vi.fn();
mockSet([]);
expect(mockSet).toHaveBeenCalledWith([]);
it('toggleGolemLoadoutEntry is callable', () => {
const mockToggle = vi.fn();
mockToggle('test-design');
expect(mockToggle).toHaveBeenCalledWith('test-design');
});
});