[+] Add worlds end

This commit is contained in:
Azalea
2024-12-28 01:55:01 -05:00
parent 7b8fb02398
commit 2a80a10eec
4 changed files with 26 additions and 5 deletions

View File

@@ -117,7 +117,9 @@ export interface MusicMeta {
designer: string
lv_id: number
notes: number
}[]
}[],
worldsEndTag?: string
worldsEndStars?: number
}
export type AllMusic = { [key: string]: MusicMeta }

View File

@@ -89,7 +89,6 @@ export function roundFloor(achievement: number, game: GameName, digits = 2) {
}
export function chusanRating(lv: number, score: number) {
console.log(lv)
lv = lv * 100
if (score >= 1009000) return lv + 215; // SSS+
if (score >= 1007500) return lv + 200 + (score - 1007500) / 100; // SSS
@@ -127,7 +126,7 @@ export function parseComposition(item: string, allMusics: Record<string, MusicMe
// Get score multiplier
const tup = getMult(score, game)
const [ cutoff, mult ] = [ +tup[0], +tup[1] ]
const rank = tup[2] as string
const rank = "" + tup[2]
let diff = meta?.notes?.[diffId === 10 ? 0 : diffId]?.lv