1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 23:12:56 +08:00

Fix results screen showing other rank badges on F rank

This commit is contained in:
Salman Ahmed 2024-01-27 01:46:12 +03:00
parent 2ccd0e3692
commit 47f0b86018

View File

@ -351,24 +351,28 @@ namespace osu.Game.Screens.Ranking.Expanded.Accuracy
int badgeNum = 0;
foreach (var badge in badges)
if (score.Rank != ScoreRank.F)
{
if (badge.Accuracy > score.Accuracy)
continue;
using (BeginDelayedSequence(inverseEasing(ACCURACY_TRANSFORM_EASING, Math.Min(accuracyX - virtual_ss_percentage, badge.Accuracy) / targetAccuracy) * ACCURACY_TRANSFORM_DURATION))
foreach (var badge in badges)
{
badge.Appear();
if (badge.Accuracy > score.Accuracy)
continue;
if (withFlair)
using (BeginDelayedSequence(
inverseEasing(ACCURACY_TRANSFORM_EASING, Math.Min(accuracyX - virtual_ss_percentage, badge.Accuracy) / targetAccuracy) * ACCURACY_TRANSFORM_DURATION))
{
Schedule(() =>
{
var dink = badgeNum < badges.Count - 1 ? badgeTickSound : badgeMaxSound;
badge.Appear();
dink.FrequencyTo(1 + badgeNum++ * 0.05);
dink.Play();
});
if (withFlair)
{
Schedule(() =>
{
var dink = badgeNum < badges.Count - 1 ? badgeTickSound : badgeMaxSound;
dink.FrequencyTo(1 + badgeNum++ * 0.05);
dink.Play();
});
}
}
}
}