1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Fix ApproachRate not inheriting OverallDifficulty when it is undefined

This commit is contained in:
Bang Sunghwan 2018-02-09 09:21:18 +09:00
parent f9cba37a65
commit cc6114b344

View File

@ -20,7 +20,18 @@ 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 = null;
public float ApproachRate
{
get
{
return approachRate ?? OverallDifficulty;
}
set
{
approachRate = DEFAULT_DIFFICULTY;
}
}
public float SliderMultiplier { get; set; } = 1;
public float SliderTickRate { get; set; } = 1;