mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Fix ApproachRate not inheriting OverallDifficulty when it is undefined
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user