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"); }