mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 04:13:00 +08:00
Clean up a few remaining stragglers.
This commit is contained in:
parent
4a149c4ab8
commit
ddce3c157f
@ -54,7 +54,7 @@ namespace osu.Game.Beatmaps
|
||||
/// Calculates the star difficulty for this Beatmap.
|
||||
/// </summary>
|
||||
/// <returns>The star difficulty.</returns>
|
||||
public double CalculateStarDifficulty() => RulesetCollection.GetRuleset(BeatmapInfo.Mode).CreateDifficultyCalculator(this).Calculate();
|
||||
public double CalculateStarDifficulty() => BeatmapInfo.Ruleset.CreateDifficultyCalculator(this).Calculate();
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a new beatmap.
|
||||
|
@ -45,7 +45,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
Origin = Anchor.Centre,
|
||||
TextSize = Size.X,
|
||||
Colour = Color4.White,
|
||||
Icon = RulesetCollection.GetRuleset((int)beatmap.Mode).Icon
|
||||
Icon = beatmap.Ruleset.Icon
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ namespace osu.Game.Screens.Select
|
||||
}));
|
||||
|
||||
//get statistics fromt he current ruleset.
|
||||
labels.AddRange(RulesetCollection.GetRuleset(beatmap.BeatmapInfo.Mode).GetBeatmapStatistics(beatmap).Select(s => new InfoLabel(s)));
|
||||
labels.AddRange(beatmap.BeatmapInfo.Ruleset.GetBeatmapStatistics(beatmap).Select(s => new InfoLabel(s)));
|
||||
}
|
||||
|
||||
AlwaysPresent = true;
|
||||
|
Loading…
Reference in New Issue
Block a user