Finished build battle stats
This commit is contained in:
@@ -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)!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user