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
1 changed files with 2 additions and 1 deletions

View File

@ -106,8 +106,9 @@ protected ScoreProcessor()
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);
};
}