mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 07:42:55 +08:00
Merge pull request #2582 from smoogipoo/fix-hr-application
Fix HR mod affecting original beatmap difficulty
This commit is contained in:
commit
2938eadefb
@ -1 +1 @@
|
|||||||
Subproject commit fac688633b8fcf34ae5d0514c26b03e217161eb4
|
Subproject commit 80e78fd45bb79ca4bc46ecc05deb6058f3879faa
|
@ -107,8 +107,14 @@ namespace osu.Game.Beatmaps
|
|||||||
IBeatmap converted = converter.Convert();
|
IBeatmap converted = converter.Convert();
|
||||||
|
|
||||||
// Apply difficulty mods
|
// Apply difficulty mods
|
||||||
foreach (var mod in Mods.Value.OfType<IApplicableToDifficulty>())
|
if (Mods.Value.Any(m => m is IApplicableToDifficulty))
|
||||||
mod.ApplyToDifficulty(converted.BeatmapInfo.BaseDifficulty);
|
{
|
||||||
|
converted.BeatmapInfo = converted.BeatmapInfo.Clone();
|
||||||
|
converted.BeatmapInfo.BaseDifficulty = converted.BeatmapInfo.BaseDifficulty.Clone();
|
||||||
|
|
||||||
|
foreach (var mod in Mods.Value.OfType<IApplicableToDifficulty>())
|
||||||
|
mod.ApplyToDifficulty(converted.BeatmapInfo.BaseDifficulty);
|
||||||
|
}
|
||||||
|
|
||||||
// Post-process
|
// Post-process
|
||||||
rulesetInstance.CreateBeatmapProcessor(converted)?.PostProcess();
|
rulesetInstance.CreateBeatmapProcessor(converted)?.PostProcess();
|
||||||
|
Loading…
Reference in New Issue
Block a user