Added uhc acordion

This commit is contained in:
2025-09-04 19:48:01 +02:00
parent ae7a6b33c9
commit 3c6e2d3a9b
4 changed files with 46 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
import { STARS } from "@/data/hypixel/uhc"
export function getUhcStar(score: number): number {
for (let i = STARS.length - 1; i >= 0; i--) {
if (score >= STARS[i].value) {
return i + 1
}
}
return 1
}