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

Pass Rank.Value instead

Passing Rank.Value along each iteration instead of calculating.
This commit is contained in:
iiSaLMaN 2019-04-30 18:49:31 +03:00 committed by GitHub
parent e0abd0b2c1
commit 148f4c4ce0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,8 +106,9 @@ namespace osu.Game.Rulesets.Scoring
Combo.ValueChanged += delegate { HighestCombo.Value = Math.Max(HighestCombo.Value, Combo.Value); };
Accuracy.ValueChanged += delegate
{
Rank.Value = rankFrom(Accuracy.Value);
foreach (var mod in Mods.Value.OfType<IApplicableToScoreProcessor>())
Rank.Value = mod.AdjustRank(rankFrom(Accuracy.Value), Accuracy.Value);
Rank.Value = mod.AdjustRank(Rank.Value, Accuracy.Value);
};
}