Finished build battle stats

This commit is contained in:
2025-09-03 23:38:26 +02:00
parent 1b13abdc32
commit a76b1b906e
5 changed files with 70 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
import { STARS } from "@/data/hypixel/build-battle"
import { MODES, STARS } from "@/data/hypixel/build-battle"
export function getBuildBattleRank(score: number) {
for (let i = STARS.length - 1; i >= 0; i--) {
@@ -14,3 +14,7 @@ export function getNextBuildBattleRank(score: number) {
return next > STARS.length - 1 ? null : STARS[next]
}
export function getBuildBattleModeName(id: typeof MODES[number]["id"]) {
return MODES.find(m => m.id === id)!
}