fix rank icons appearing when they shouldn't be

This commit is contained in:
Cameron Taylor 2024-06-01 17:13:07 -04:00
parent 4c037de247
commit bd7875e86a

View file

@ -351,6 +351,9 @@ class Scoring
{
if (scoreData == null) return null;
// we can return null here, meaning that the player hasn't actually played and finished the song (thus has no data)
if (scoreData.tallies.totalNotes == 0) return null;
// Perfect (Platinum) is a Sick Full Clear
var isPerfectGold = scoreData.tallies.sick == scoreData.tallies.totalNotes;
if (isPerfectGold) return ScoringRank.PERFECT_GOLD;