mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Don't compute keymod difficulties for mania-specific beatmaps
These don't affect the number of keys in the beatmap at all for mania-specific beatmaps.
This commit is contained in:
@ -29,9 +29,12 @@ namespace osu.Game.Rulesets.Mania.Difficulty
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private const double decay_weight = 0.9;
|
private const double decay_weight = 0.9;
|
||||||
|
|
||||||
|
private readonly bool isForCurrentRuleset;
|
||||||
|
|
||||||
public ManiaDifficultyCalculator(Ruleset ruleset, WorkingBeatmap beatmap)
|
public ManiaDifficultyCalculator(Ruleset ruleset, WorkingBeatmap beatmap)
|
||||||
: base(ruleset, beatmap)
|
: base(ruleset, beatmap)
|
||||||
{
|
{
|
||||||
|
isForCurrentRuleset = beatmap.BeatmapInfo.Ruleset.Equals(new ManiaRuleset().RulesetInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override DifficultyAttributes Calculate(IBeatmap beatmap, Mod[] mods, double timeRate)
|
protected override DifficultyAttributes Calculate(IBeatmap beatmap, Mod[] mods, double timeRate)
|
||||||
@ -129,22 +132,38 @@ namespace osu.Game.Rulesets.Mania.Difficulty
|
|||||||
return difficulty;
|
return difficulty;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override Mod[] DifficultyAdjustmentMods => new Mod[]
|
protected override Mod[] DifficultyAdjustmentMods
|
||||||
{
|
{
|
||||||
new ManiaModDoubleTime(),
|
get
|
||||||
new ManiaModHalfTime(),
|
{
|
||||||
new ManiaModEasy(),
|
if (isForCurrentRuleset)
|
||||||
new ManiaModHardRock(),
|
{
|
||||||
new ManiaModKey1(),
|
return new Mod[]
|
||||||
new ManiaModKey2(),
|
{
|
||||||
new ManiaModKey3(),
|
new ManiaModDoubleTime(),
|
||||||
new ManiaModKey4(),
|
new ManiaModHalfTime(),
|
||||||
new ManiaModKey5(),
|
new ManiaModEasy(),
|
||||||
new ManiaModKey6(),
|
new ManiaModHardRock(),
|
||||||
new ManiaModKey7(),
|
};
|
||||||
new ManiaModKey8(),
|
}
|
||||||
new ManiaModKey9(),
|
|
||||||
};
|
|
||||||
|
|
||||||
|
return new Mod[]
|
||||||
|
{
|
||||||
|
new ManiaModDoubleTime(),
|
||||||
|
new ManiaModHalfTime(),
|
||||||
|
new ManiaModEasy(),
|
||||||
|
new ManiaModHardRock(),
|
||||||
|
new ManiaModKey1(),
|
||||||
|
new ManiaModKey2(),
|
||||||
|
new ManiaModKey3(),
|
||||||
|
new ManiaModKey4(),
|
||||||
|
new ManiaModKey5(),
|
||||||
|
new ManiaModKey6(),
|
||||||
|
new ManiaModKey7(),
|
||||||
|
new ManiaModKey8(),
|
||||||
|
new ManiaModKey9(),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user