1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 07:09:11 +08:00

Merge pull request #2049 from sunghwan2789/default-approachrate

Fix ApproachRate not inheriting OverallDifficulty when it is undefined
This commit is contained in:
Dean Herbert
2018-02-13 20:34:02 +09:00
committed by GitHub
Unverified
+9 -1
View File
@@ -20,7 +20,15 @@ namespace osu.Game.Beatmaps
public float DrainRate { get; set; } = DEFAULT_DIFFICULTY;
public float CircleSize { get; set; } = DEFAULT_DIFFICULTY;
public float OverallDifficulty { get; set; } = DEFAULT_DIFFICULTY;
public float ApproachRate { get; set; } = DEFAULT_DIFFICULTY;
private float? approachRate;
public float ApproachRate
{
get => approachRate ?? OverallDifficulty;
set => approachRate = value;
}
public float SliderMultiplier { get; set; } = 1;
public float SliderTickRate { get; set; } = 1;