mirror of
https://github.com/ppy/osu.git
synced 2025-02-20 20:33:21 +08:00
Copy effect points across on blank difficulty creation
This commit is contained in:
parent
2a6fbb59ff
commit
e3abbf1177
@ -154,9 +154,18 @@ namespace osu.Game.Beatmaps
|
||||
DifficultyName = NamingUtils.GetNextBestName(targetBeatmapSet.Beatmaps.Select(b => b.DifficultyName), "New Difficulty")
|
||||
};
|
||||
var newBeatmap = new Beatmap { BeatmapInfo = newBeatmapInfo };
|
||||
|
||||
foreach (var timingPoint in referenceWorkingBeatmap.Beatmap.ControlPointInfo.TimingPoints)
|
||||
newBeatmap.ControlPointInfo.Add(timingPoint.Time, timingPoint.DeepClone());
|
||||
|
||||
foreach (var effectPoint in referenceWorkingBeatmap.Beatmap.ControlPointInfo.EffectPoints)
|
||||
{
|
||||
if (!rulesetInfo.Equals(referenceWorkingBeatmap.BeatmapInfo.Ruleset))
|
||||
effectPoint.ScrollSpeedBindable.SetDefault();
|
||||
|
||||
newBeatmap.ControlPointInfo.Add(effectPoint.Time, effectPoint.DeepClone());
|
||||
}
|
||||
|
||||
return addDifficultyToSet(targetBeatmapSet, newBeatmap, referenceWorkingBeatmap.Skin);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user