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:
parent
2173f46a46
commit
bac7d64437
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user