@@ -40,7 +40,7 @@ const RatingTable = component$(({ rating, userMusic, title, ver }: { rating: Rat
4040 entries . push ( { rating : ratingListEntry } ) ;
4141 continue ;
4242 }
43- const score = computeRa ( chart . internalLevelValue , ratingListEntry . achievement ) ;
43+ const score = computeRa ( chart . internalLevelValue , ratingListEntry . achievement , userMusic . find ( music => music . musicId === ratingListEntry . musicId && music . level === ratingListEntry . level ) ! . comboStatus ) ;
4444 scores . push ( score ) ;
4545 entries . push ( { rating : ratingListEntry , score, song, chart } ) ;
4646 }
@@ -60,13 +60,32 @@ const RatingTable = component$(({ rating, userMusic, title, ver }: { rating: Rat
6060 </ div >
6161 </ div >
6262 < div style = { { fontSize : '2em' , margin : '0 15px' } } >
63- < div > 平均: { ratingAnalyse ( averageMinMax [ 0 ] ) } </ div >
64- < div > 最低: { ratingAnalyse ( averageMinMax [ 1 ] ) } </ div >
65- < div > 最高: { ratingAnalyse ( averageMinMax [ 2 ] ) } </ div >
63+ < div > 平均: < RatingAnalyse rating = { averageMinMax [ 0 ] } /> </ div >
64+ < div > 最低: < RatingAnalyse rating = { averageMinMax [ 1 ] } /> </ div >
65+ < div > 最高: < RatingAnalyse rating = { averageMinMax [ 2 ] } /> </ div >
6666 </ div >
6767 </ div >
6868 < div class = { styles . b50Grid } >
6969 { entries . map ( it => < B50Song entry = { it . rating } song = { it . song ! } score = { userMusic . find ( music => music . musicId === it . rating . musicId && music . level === it . rating . level ) ! } key = { it . rating . musicId } /> ) }
7070 </ div >
7171 </ div > ;
7272} ) ;
73+
74+ const RatingAnalyse = component$ ( ( { rating } : { rating : number } ) => {
75+ const ap = ( rating - 1 ) / 22.4 / 1.005 ;
76+ const sssp = rating / 22.4 / 1.005 ;
77+ const sss = rating / 21.6 ;
78+ const ss = rating / 20.8 / 0.99 ;
79+ return < >
80+ < span class = "font-600" > { rating } </ span >
81+ { ' ≈ ' }
82+ < span > { ap . toFixed ( 1 ) } </ span >
83+ { ' AP / ' }
84+ < span > { sssp . toFixed ( 1 ) } </ span >
85+ { ' SSS+ / ' }
86+ < span > { sss . toFixed ( 1 ) } </ span >
87+ { ' SSS / ' }
88+ < span > { ss . toFixed ( 1 ) } </ span >
89+ { ' SS' }
90+ </ > ;
91+ } ) ;
0 commit comments