1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 16:02:55 +08:00

Improve the completeness of APIBeatmap's transform methods

This commit is contained in:
Dean Herbert 2018-10-13 23:45:52 +09:00
parent 2173f46a46
commit bac7d64437

View File

@ -61,17 +61,13 @@ namespace osu.Game.Online.API.Requests.Responses
{
return new BeatmapInfo
{
Metadata = this,
Metadata = !string.IsNullOrEmpty(Artist) ? this : (BeatmapMetadata)BeatmapSet,
Ruleset = rulesets.GetRuleset(ruleset),
StarDifficulty = starDifficulty,
OnlineBeatmapID = OnlineBeatmapID,
Version = version,
Status = Status,
BeatmapSet = new BeatmapSetInfo
{
OnlineBeatmapSetID = OnlineBeatmapSetID,
Status = BeatmapSet?.Status ?? BeatmapSetOnlineStatus.None
},
BeatmapSet = BeatmapSet.ToBeatmapSet(rulesets),
BaseDifficulty = new BeatmapDifficulty
{
DrainRate = drainRate,