Finished progress
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user