mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +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 DrainRate { get; set; } = DEFAULT_DIFFICULTY;
|
||||||
public float CircleSize { get; set; } = DEFAULT_DIFFICULTY;
|
public float CircleSize { get; set; } = DEFAULT_DIFFICULTY;
|
||||||
public float OverallDifficulty { 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 SliderMultiplier { get; set; } = 1;
|
||||||
public float SliderTickRate { get; set; } = 1;
|
public float SliderTickRate { get; set; } = 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user