GetBeatmapMaximumComboAsync -> GetMaximumAchievableComboAsync

This commit is contained in:
Salman Ahmed
2022-03-20 16:18:53 +03:00
parent eca7975864
commit 2a78042038
2 changed files with 4 additions and 4 deletions

View File

@ -134,7 +134,7 @@ namespace osu.Game.Scoring
if (string.IsNullOrEmpty(score.BeatmapInfo.MD5Hash)) if (string.IsNullOrEmpty(score.BeatmapInfo.MD5Hash))
return score.TotalScore; return score.TotalScore;
int? beatmapMaxCombo = await GetBeatmapMaximumComboAsync(score, cancellationToken).ConfigureAwait(false); int? beatmapMaxCombo = await GetMaximumAchievableComboAsync(score, cancellationToken).ConfigureAwait(false);
if (beatmapMaxCombo == null) if (beatmapMaxCombo == null)
return score.TotalScore; return score.TotalScore;
@ -149,12 +149,12 @@ namespace osu.Game.Scoring
} }
/// <summary> /// <summary>
/// Retrieves the maximum achievable combo on the beatmap of the provided score. /// Retrieves the maximum achievable combo for the provided score.
/// </summary> /// </summary>
/// <param name="score">The <see cref="ScoreInfo"/> to compute the maximum achievable combo for.</param> /// <param name="score">The <see cref="ScoreInfo"/> to compute the maximum achievable combo for.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to cancel the process.</param> /// <param name="cancellationToken">A <see cref="CancellationToken"/> to cancel the process.</param>
/// <returns>The maximum achievable combo.</returns> /// <returns>The maximum achievable combo.</returns>
public async Task<int?> GetBeatmapMaximumComboAsync([NotNull] ScoreInfo score, CancellationToken cancellationToken = default) public async Task<int?> GetMaximumAchievableComboAsync([NotNull] ScoreInfo score, CancellationToken cancellationToken = default)
{ {
if (score.IsLegacyScore) if (score.IsLegacyScore)
{ {

View File

@ -65,7 +65,7 @@ namespace osu.Game.Screens.Ranking.Expanded
var metadata = beatmap.BeatmapSet?.Metadata ?? beatmap.Metadata; var metadata = beatmap.BeatmapSet?.Metadata ?? beatmap.Metadata;
string creator = metadata.Author.Username; string creator = metadata.Author.Username;
int? beatmapMaxCombo = scoreManager.GetBeatmapMaximumComboAsync(score).GetResultSafely(); int? beatmapMaxCombo = scoreManager.GetMaximumAchievableComboAsync(score).GetResultSafely();
var topStatistics = new List<StatisticDisplay> var topStatistics = new List<StatisticDisplay>
{ {