Release Healer Man 0.1.40

This commit is contained in:
phenom committed 2026-09-13 13:21:27 -04:00
1 parent ed0d2fea3d
commit 197a64117c
215 files changed
+5131 -181

No files matched your search

+12
View File
@@ -10,6 +10,18 @@ const party: readonly DungeonRunMember[] = [{ name: "Tester", classId: "rom-prie
beforeEach(() => { useDungeonRunStore.setState({ progress: null }); });
describe("dungeon completion and run timing", () => {
it("preserves the selected difficulty on resume and starts a new timer when it changes", () => {
const run = useDungeonRunStore.getState();
run.begin("deadmines", "normal", undefined, false, 7); run.start(1000, party);
const saved = normalizeDungeonRunProgress(JSON.parse(JSON.stringify(useDungeonRunStore.getState().progress)))!;
run.begin("deadmines", "normal", saved, false, 7);
expect(useDungeonRunStore.getState().progress).toEqual(saved);
run.begin("deadmines", "normal", saved, false, 8);
expect(useDungeonRunStore.getState().progress).toMatchObject({ bossDifficulty: 8, startedAt: null });
expect(useDungeonRunStore.getState().progress!.id).not.toBe(saved.id);
expect(normalizeDungeonRunProgress({ ...saved, bossDifficulty: 11 })).toBeNull();
expect(normalizeDungeonRunProgress({ ...saved, bossDifficulty: 1.5 })).toBeNull();
});
it("completes Barren Caves when Anglo dies, records its real spawn id, and survives checkpoint hydration", () => {
const dungeon = requireDungeonDefinition("barren-caves");
activateDungeonEncounterDefinitions(dungeon.id, dungeon.encounters ?? [], "normal");