new rpg mode
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user