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
1 changed files with 2 additions and 6 deletions

View File

@ -61,17 +61,13 @@ public BeatmapInfo ToBeatmap(RulesetStore rulesets)
{
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,