mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
GetBeatmapMaximumComboAsync
-> GetMaximumAchievableComboAsync
This commit is contained in:
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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>
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user