[F] Fix ongeki rating

pull/132/head
Azalea 2025-03-21 21:01:19 -04:00
parent c524950e35
commit 23ddb2c6e1
3 changed files with 3 additions and 3 deletions

View File

@ -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)
}

View File

@ -59,7 +59,7 @@
{/if}
</span>
<span class="rating">{
game === 'chu3' ?
game === 'chu3' || game === 'ongeki' ?
(user.rating / 100).toFixed(2) :
user.rating.toLocaleString()
}</span>

View File

@ -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>