mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:57:24 +08:00
FIxed stated problems
This commit is contained in:
parent
e451b2197c
commit
9ef34fa51a
@ -428,19 +428,6 @@ namespace osu.Game.Rulesets.Mania
|
||||
|
||||
public override DifficultySection CreateEditorDifficultySection() => new ManiaDifficultySection();
|
||||
|
||||
// Mania doesn't have rate-adjusted attributes anymore?
|
||||
|
||||
//public override BeatmapDifficulty GetRateAdjustedDifficulty(IBeatmapDifficultyInfo baseDifficulty, double rate)
|
||||
//{
|
||||
// BeatmapDifficulty adjustedDifficulty = new BeatmapDifficulty(baseDifficulty);
|
||||
|
||||
// double hitwindow = 64.0 - 3 * adjustedDifficulty.OverallDifficulty;
|
||||
// hitwindow /= rate;
|
||||
// adjustedDifficulty.OverallDifficulty = (float)(64.0 - hitwindow) / 3;
|
||||
|
||||
// return adjustedDifficulty ?? (BeatmapDifficulty)baseDifficulty;
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
public enum PlayfieldType
|
||||
|
@ -389,6 +389,14 @@ namespace osu.Game.Rulesets
|
||||
/// Can be overridden to alter the difficulty section to the editor beatmap setup screen.
|
||||
/// </summary>
|
||||
public virtual DifficultySection? CreateEditorDifficultySection() => null;
|
||||
|
||||
/// <summary>
|
||||
/// Changes difficulty after they're adjusted according to rate.
|
||||
/// Doesn't change any attributes by default.
|
||||
/// </summary>
|
||||
/// <param name="baseDifficulty">Difficulty attributes that will be changed</param>
|
||||
/// <param name="rate">Rate of the gameplay. For example 1.5 for DT.</param>
|
||||
/// <returns>Copy of difficulty info with values changed according to rate and ruleset-specific behaviour.</returns>
|
||||
public virtual BeatmapDifficulty GetRateAdjustedDifficulty(IBeatmapDifficultyInfo baseDifficulty, double rate) => new BeatmapDifficulty(baseDifficulty);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user