mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 12:35:34 +08:00
storing OD value only
This commit is contained in:
parent
86ebd9d663
commit
5532d3ec49
@ -24,7 +24,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
private readonly Container circleContainer;
|
||||
private readonly DrawableHitCircle circle;
|
||||
|
||||
private WorkingBeatmap currentBeatmap;
|
||||
private float beatmapOD;
|
||||
|
||||
public DrawableSpinner(Spinner s) : base(s)
|
||||
{
|
||||
@ -78,7 +78,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
[BackgroundDependencyLoader(permitNulls: true)]
|
||||
private void load(OsuGame game)
|
||||
{
|
||||
currentBeatmap = game?.Beatmap?.Value;
|
||||
beatmapOD = game?.Beatmap?.Value.Beatmap.BeatmapInfo.Difficulty.OverallDifficulty ?? 5;
|
||||
}
|
||||
|
||||
protected override void CheckJudgement(bool userTriggered)
|
||||
@ -118,7 +118,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
|
||||
private Vector2 scaleToCircle => circle.Scale * circle.DrawWidth / DrawWidth * 0.95f;
|
||||
|
||||
private float spinsPerMinuteNeeded => 100 + (currentBeatmap?.Beatmap.BeatmapInfo.Difficulty.OverallDifficulty ?? 5) * 15;
|
||||
private float spinsPerMinuteNeeded => 100 + beatmapOD * 15;
|
||||
|
||||
private float rotationsNeeded => (float)(spinsPerMinuteNeeded * (spinner.EndTime - spinner.StartTime) / 60000f);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user