// ─── Floor Helpers ────────────────────────────────────────────────────────────

import { GUARDIANS, FLOOR_ELEM_CYCLE } from '../constants';

export function getFloorMaxHP(floor: number): number {
  if (GUARDIANS[floor]) return GUARDIANS[floor].hp;
  // Improved scaling: slower early game, faster late game
  const baseHP = 100;
  const floorScaling = floor * 50;
  const exponentialScaling = Math.pow(floor, 1.7);
  return Math.floor(baseHP + floorScaling + exponentialScaling);
}

export function getFloorElement(floor: number): string {
  return FLOOR_ELEM_CYCLE[(floor - 1) % FLOOR_ELEM_CYCLE.length];
}
