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:
parent
e0abd0b2c1
commit
148f4c4ce0
@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user