mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 10:23:20 +08:00
Fix one remaining method call
This commit is contained in:
parent
0e1b62ef85
commit
a719693d10
@ -246,7 +246,7 @@ namespace osu.Game.Database
|
|||||||
|
|
||||||
// warning: ordering is important here - both total score and ranks are dependent on accuracy!
|
// warning: ordering is important here - both total score and ranks are dependent on accuracy!
|
||||||
score.Accuracy = ComputeAccuracy(score, scoreProcessor);
|
score.Accuracy = ComputeAccuracy(score, scoreProcessor);
|
||||||
score.Rank = computeRank(score, scoreProcessor);
|
score.Rank = ComputeRank(score, scoreProcessor);
|
||||||
(score.TotalScoreWithoutMods, score.TotalScore) = convertFromLegacyTotalScore(score, ruleset, beatmap);
|
(score.TotalScoreWithoutMods, score.TotalScore) = convertFromLegacyTotalScore(score, ruleset, beatmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -270,7 +270,7 @@ namespace osu.Game.Database
|
|||||||
|
|
||||||
// warning: ordering is important here - both total score and ranks are dependent on accuracy!
|
// warning: ordering is important here - both total score and ranks are dependent on accuracy!
|
||||||
score.Accuracy = ComputeAccuracy(score, scoreProcessor);
|
score.Accuracy = ComputeAccuracy(score, scoreProcessor);
|
||||||
score.Rank = computeRank(score, scoreProcessor);
|
score.Rank = ComputeRank(score, scoreProcessor);
|
||||||
(score.TotalScoreWithoutMods, score.TotalScore) = convertFromLegacyTotalScore(score, ruleset, difficulty, attributes);
|
(score.TotalScoreWithoutMods, score.TotalScore) = convertFromLegacyTotalScore(score, ruleset, difficulty, attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -637,6 +637,9 @@ namespace osu.Game.Database
|
|||||||
public static ScoreRank ComputeRank(ScoreInfo scoreInfo) =>
|
public static ScoreRank ComputeRank(ScoreInfo scoreInfo) =>
|
||||||
ComputeRank(scoreInfo.Accuracy, scoreInfo.Statistics, scoreInfo.Mods, scoreInfo.Ruleset.CreateInstance().CreateScoreProcessor());
|
ComputeRank(scoreInfo.Accuracy, scoreInfo.Statistics, scoreInfo.Mods, scoreInfo.Ruleset.CreateInstance().CreateScoreProcessor());
|
||||||
|
|
||||||
|
public static ScoreRank ComputeRank(ScoreInfo scoreInfo, ScoreProcessor processor) =>
|
||||||
|
ComputeRank(scoreInfo.Accuracy, scoreInfo.Statistics, scoreInfo.Mods, processor);
|
||||||
|
|
||||||
public static ScoreRank ComputeRank(double accuracy, IReadOnlyDictionary<HitResult, int> statistics, IList<Mod> mods, ScoreProcessor scoreProcessor)
|
public static ScoreRank ComputeRank(double accuracy, IReadOnlyDictionary<HitResult, int> statistics, IList<Mod> mods, ScoreProcessor scoreProcessor)
|
||||||
{
|
{
|
||||||
var rank = scoreProcessor.RankFromScore(accuracy, statistics);
|
var rank = scoreProcessor.RankFromScore(accuracy, statistics);
|
||||||
|
Loading…
Reference in New Issue
Block a user