Release v0.1.10 2026-07-13
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { BOSS_BURROW_CLEARANCE, bossBurrowPositionY, bossIsBurrowing } from "./bossBurrowVisuals";
|
||||
|
||||
describe("boss burrow visuals", () => {
|
||||
it("places the scaled top of the model below the arena floor", () => {
|
||||
const modelTopY = 2.8371768724243784;
|
||||
const modelScale = 0.82;
|
||||
const positionY = bossBurrowPositionY(modelTopY, modelScale);
|
||||
|
||||
expect(positionY + modelTopY * modelScale).toBeCloseTo(-BOSS_BURROW_CLEARANCE, 6);
|
||||
});
|
||||
|
||||
it("starts sinking during the warning and remains submerged through the charge", () => {
|
||||
expect(bossIsBurrowing("burrow-rush", "telegraph")).toBe(true);
|
||||
expect(bossIsBurrowing("burrow-rush", "charging")).toBe(true);
|
||||
expect(bossIsBurrowing("burrow-rush", "holding")).toBe(false);
|
||||
expect(bossIsBurrowing("bull-charge", "charging")).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user