Finished progress

This commit is contained in:
2025-09-03 23:21:29 +02:00
parent 0cd3628e3d
commit 1b13abdc32
3 changed files with 36 additions and 0 deletions

View File

@@ -6,3 +6,11 @@ export function getBuildBattleRank(score: number) {
}
return STARS[0]
}
export function getNextBuildBattleRank(score: number) {
const current = getBuildBattleRank(score)
const next = STARS.indexOf(current) + 1
return next > STARS.length - 1 ? null : STARS[next]
}