Release v0.1.10 2026-07-13
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import type { BossMechanicId, BossMotionMode } from "../../game/types";
|
||||
|
||||
export const BOSS_BURROW_CLEARANCE = 0.58;
|
||||
|
||||
export function bossBurrowPositionY(
|
||||
modelTopY: number,
|
||||
modelScale: number,
|
||||
clearance = BOSS_BURROW_CLEARANCE,
|
||||
): number {
|
||||
return -(Math.max(0, modelTopY) * Math.max(0, modelScale) + Math.max(0, clearance));
|
||||
}
|
||||
|
||||
export function bossIsBurrowing(
|
||||
activeMechanicId: BossMechanicId | null,
|
||||
mode: BossMotionMode,
|
||||
): boolean {
|
||||
return activeMechanicId === "burrow-rush" && (mode === "telegraph" || mode === "charging");
|
||||
}
|
||||
Reference in New Issue
Block a user