Merge pull request #16505 from peppy/remove-base-difficulty-usage

Remove all usage of `BaseDifficulty` (and access `Difficulty` instead)
This commit is contained in:
Dan Balasescu
2022-01-19 13:53:55 +09:00
committed by GitHub
34 changed files with 45 additions and 44 deletions

View File

@ -28,7 +28,7 @@ namespace osu.Game.Beatmaps
difficulty = value;
if (beatmapInfo != null)
beatmapInfo.BaseDifficulty = difficulty.Clone();
beatmapInfo.Difficulty = difficulty.Clone();
}
}
@ -41,8 +41,8 @@ namespace osu.Game.Beatmaps
{
beatmapInfo = value;
if (beatmapInfo?.BaseDifficulty != null)
Difficulty = beatmapInfo.BaseDifficulty.Clone();
if (beatmapInfo?.Difficulty != null)
Difficulty = beatmapInfo.Difficulty.Clone();
}
}
@ -57,7 +57,7 @@ namespace osu.Game.Beatmaps
Author = { Username = @"Unknown Creator" },
},
DifficultyName = @"Normal",
BaseDifficulty = Difficulty,
Difficulty = Difficulty,
};
}