Remove now-unnecessary IsForCurrentRuleset property of RulesetContainer

This commit is contained in:
smoogipoo
2018-05-07 10:17:54 +09:00
parent 27c8591d48
commit 4ecdea8b2e
18 changed files with 31 additions and 36 deletions

View File

@ -18,12 +18,16 @@ namespace osu.Game.Rulesets.Mania.Mods
public override string Description => @"Double the stages, double the fun!";
public override double ScoreMultiplier => 0;
private bool isForCurrentRuleset;
public void ApplyToBeatmapConverter(IBeatmapConverter beatmapConverter)
{
var mbc = (ManiaBeatmapConverter)beatmapConverter;
isForCurrentRuleset = mbc.IsForCurrentRuleset;
// Although this can work, for now let's not allow keymods for mania-specific beatmaps
if (mbc.IsForCurrentRuleset)
if (isForCurrentRuleset)
return;
mbc.TargetColumns *= 2;
@ -34,7 +38,7 @@ namespace osu.Game.Rulesets.Mania.Mods
var mrc = (ManiaRulesetContainer)rulesetContainer;
// Although this can work, for now let's not allow keymods for mania-specific beatmaps
if (mrc.IsForCurrentRuleset)
if (isForCurrentRuleset)
return;
var newDefinitions = new List<StageDefinition>();