mirror of https://github.com/hykilpikonna/AquaDX
[F] Fix ongeki rating
parent
c524950e35
commit
23ddb2c6e1
|
@ -134,7 +134,7 @@ export function parseComposition(item: string, allMusics: Record<string, MusicMe
|
|||
if (!diff) return
|
||||
if (game === 'mai2')
|
||||
return Math.floor(diff * mult * (Math.min(100.5, score / 10000) / 100)).toFixed(0)
|
||||
if (game === 'chu3')
|
||||
if (game === 'chu3' || game === 'ongeki')
|
||||
return (Math.floor(chusanRating(diff, score)) / 100).toFixed(2)
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
{/if}
|
||||
</span>
|
||||
<span class="rating">{
|
||||
game === 'chu3' ?
|
||||
game === 'chu3' || game === 'ongeki' ?
|
||||
(user.rating / 100).toFixed(2) :
|
||||
user.rating.toLocaleString()
|
||||
}</span>
|
||||
|
|
|
@ -195,7 +195,7 @@
|
|||
<div class="rating">
|
||||
<span>{game === 'mai2' ? t("UserHome.DXRating"): t("UserHome.Rating")}</span>
|
||||
<span>{
|
||||
game === 'chu3' ?
|
||||
game === 'chu3' || game === 'ongeki' ?
|
||||
(d.user.rating / 100).toFixed(2) :
|
||||
d.user.rating.toLocaleString()
|
||||
}</span>
|
||||
|
|
Loading…
Reference in New Issue