Release Healer Man 0.1.21

This commit is contained in:
phenom committed 2026-09-08 10:40:26 -04:00
1 parent 699fc858c9
commit f6f2375145
210 files changed
+976039 -6247

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import { describe, expect, it } from "vitest";
import { activeEncounterSpawnGroupSpawns } from "./dungeonEncounterSpawns";
const spawn = (id: string, spawnMask: number) => ({
id,
entityId: "test-mob",
position: [0, 0, 0] as const,
yaw: 0,
spawnMask,
});
describe("encounter spawn groups", () => {
it("adds only active, difficulty-matching, non-duplicate runtime ids", () => {
const result = activeEncounterSpawnGroupSpawns([
{ id: "wave-a", spawns: [spawn("one", 1), spawn("two", 2)] },
{ id: "wave-b", spawns: [spawn("three", 1)] },
], ["wave-a"], 1, [spawn("one", 1)]);
expect(result.map((entry) => entry.id)).toEqual([]);
expect(activeEncounterSpawnGroupSpawns([
{ id: "wave-a", spawns: [spawn("one", 1), spawn("two", 2)] },
], ["wave-a"], 2).map((entry) => entry.id)).toEqual(["two"]);
});
});