feat: Complete Golemancy System Redesign - Component-Based Construction
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m18s

- Fix Crystal-Steel Hybrid Frame unlock to require Fabricator 5 + Enchanter 5 (dual attunement)
- Fix golem slot calculation: pass fabricator level to summon logic, cap at 7 (base 5 + discipline bonus)
- Integrate discipline golemCapacity bonus into slot calculation in combat-descent-actions and golem-combat pipeline
- Update GolemancyTab UI to show discipline slot bonus in header
- Add comprehensive test suite: golemancy-data.test.ts (344 lines) and golemancy-combat.test.ts (313 lines)
- All 1009 tests pass across 52 test files
This commit is contained in:
2026-06-06 19:19:06 +02:00
parent 9d4b3f3c69
commit 59fe6cd111
11 changed files with 695 additions and 20 deletions
@@ -21,11 +21,19 @@ describe('getGolemSlots', () => {
expect(getGolemSlots(10)).toBe(5);
});
it('caps at 5 slots for level 10+', () => {
it('returns base slots from fabricator level (cap applied at summon level)', () => {
expect(getGolemSlots(10)).toBe(5);
expect(getGolemSlots(11)).toBe(5);
// getGolemSlots returns base slots only; total cap of 7 is applied in summon logic
expect(getGolemSlots(20)).toBe(10);
});
it('base slots scale as floor(level/2)', () => {
expect(getGolemSlots(0)).toBe(0);
expect(getGolemSlots(1)).toBe(0);
expect(getGolemSlots(2)).toBe(1);
expect(getGolemSlots(10)).toBe(5);
});
});
// ─── Test: isComponentUnlocked ────────────────────────────────────────────────