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:
parent
f9cba37a65
commit
cc6114b344
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user