[+] Add worlds end

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

View File

@ -120,6 +120,13 @@ button.icon
//--lv-color: #c299e7
--lv-color: 194, 153, 231
.level-5
// World's End for chunithm, or Utage for maimai
// --lv-color: #eff2e1
// --lv-color: 239, 242, 225
--lv-text-clip: linear-gradient(110deg, #5ac42c, #5ccc22, #959f26, #cc7c23, #c93143, #8f4876, #4c3eb1, #3c3397)
.error
color: vars.$c-error

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

View File

@ -277,8 +277,10 @@
{:else if r.isFullCombo}
<img src="/assets/imgs/Full Combo.png" alt="Full Combo" />
{/if}
<span class={`lv level-${r.level === 10 ? 3 : r.level}`}>
{ r.notes?.[r.level === 10 ? 0 : r.level]?.lv?.toFixed(1) ?? '-' }
<span class={`lv level-${r.level === 10 ? 5 : r.level}`}>
<span>
{r.notes?.[r.level === 10 ? 0 : r.level]?.lv?.toFixed(1) ?? r.worldsEndTag ?? '-'}
</span>
</span>
<span class={`rank-${getMult(r.achievement, game)[2].toString()[0]}`}>
<span class="rank-text">{("" + getMult(r.achievement, game)[2]).replace("p", "+")}</span>
@ -492,6 +494,7 @@
flex: 1
display: flex
justify-content: space-between
align-items: center
overflow: hidden
// Limit song name to one line
@ -506,6 +509,7 @@
> div:last-child
white-space: nowrap
display: flex
align-items: center
gap: 10px
img
@ -547,6 +551,15 @@
padding: 0 6px
border-radius: vars.$border-radius
.lv.level-5 > span
color: transparent
background: var(--lv-text-clip)
background-clip: text
-webkit-background-clip: text
font-weight: bold
font-size: 1em
font-family: 'Arial Black', sans-serif
span
display: inline-block
text-align: right