export function highestRoguelikeRoundAfterDefeat(currentRecord: number, reachedRound: number): number {
  const normalizedRecord = Math.max(0, Math.floor(Number(currentRecord) || 0));
  const normalizedRound = Math.max(1, Math.floor(Number(reachedRound) || 1));
  return Math.max(normalizedRecord, normalizedRound);
}

export function highestEndlessBossKillsAfterDefeat(currentRecord: number, bossKills: number): number {
  const normalizedRecord = Math.max(0, Math.floor(Number(currentRecord) || 0));
  const normalizedKills = Math.max(0, Math.floor(Number(bossKills) || 0));
  return Math.max(normalizedRecord, normalizedKills);
}
