discipline: elemental revamp - rename, lock, merge tabs, add missing, dedupe
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m22s

This commit is contained in:
2026-05-28 13:15:14 +02:00
parent 4fa11cea41
commit 26639746e9
7 changed files with 234 additions and 303 deletions
@@ -32,11 +32,18 @@ describe('DisciplineStore', () => {
expect(useDisciplineStore.getState().activeIds.length).toBe(1);
});
it('should activate when no prior discipline state (optimistic)', () => {
// canProceedDiscipline returns true when disciplineState is undefined
it('should not activate capacity discipline when mana type is locked', () => {
// capacity disciplines now require the mana type to be unlocked
useDisciplineStore.getState().activate('attune-fire', {
elements: { fire: { unlocked: false, current: 100, max: 100 } },
});
expect(useDisciplineStore.getState().activeIds).not.toContain('attune-fire');
});
it('should activate capacity discipline when mana type element is unlocked', () => {
useDisciplineStore.getState().activate('attune-fire', {
elements: { fire: { unlocked: true, current: 100, max: 100 } },
});
expect(useDisciplineStore.getState().activeIds).toContain('attune-fire');
});