new rpg mode

This commit is contained in:
Warren H
2026-07-17 12:47:42 -04:00
parent de7b59ce77
commit 10ff124466
180 changed files with 20863 additions and 1014 deletions
@@ -6,6 +6,8 @@ import {
BOSS_DEATH_HOLD_SECONDS,
advanceBossIndicatorOpacity,
bossCanTrackTarget,
bossDeathDespawnSeconds,
bossDeathHoldSeconds,
bossDeathOpacity,
} from "./bossDeathVisuals";
@@ -28,4 +30,11 @@ describe("boss death visuals", () => {
expect(bossDeathOpacity(BOSS_DEATH_HOLD_SECONDS + BOSS_DEATH_FADE_SECONDS / 2)).toBeCloseTo(0.5);
expect(bossDeathOpacity(BOSS_DEATH_DESPAWN_SECONDS)).toBe(0);
});
it("keeps Gravehorn visible through its full authored fall", () => {
const hold = bossDeathHoldSeconds("gravehorn-triceratops");
expect(hold).toBeGreaterThan(5.73);
expect(bossDeathOpacity(5.73, "gravehorn-triceratops")).toBe(1);
expect(bossDeathOpacity(bossDeathDespawnSeconds("gravehorn-triceratops"), "gravehorn-triceratops")).toBe(0);
});
});