Release Healer Man 0.1.23

This commit is contained in:
phenom committed 2026-09-09 14:26:13 -04:00
1 parent 7f6001723a
commit c4346751a9
9 files changed
+205 -23

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
import {
WORLD_NPC_PROMPT_MAX_DISTANCE,
worldNpcPromptIsInRange,
} from "./WorldNpcPrompt";
describe("world NPC prompts", () => {
it("limits prompts to nearby players", () => {
expect(worldNpcPromptIsInRange([0, 0, 0], [0, 0, WORLD_NPC_PROMPT_MAX_DISTANCE])).toBe(true);
expect(worldNpcPromptIsInRange([0, 0, 0], [0, 0, WORLD_NPC_PROMPT_MAX_DISTANCE + 0.01])).toBe(false);
});
it("uses geometry occlusion and is the Naralex prompt path", () => {
const promptSource = readFileSync(new URL("./WorldNpcPrompt.tsx", import.meta.url), "utf8");
const naralexSource = readFileSync(new URL("./WailingNaralexEvent.tsx", import.meta.url), "utf8");
expect(promptSource).toContain('occlude="raycast"');
expect(naralexSource).toContain("<WorldNpcPrompt");
expect(naralexSource).not.toContain("<Html");
});
});