1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:43:05 +08:00

Avoid listing the base mods twice

This commit is contained in:
Dean Herbert 2018-06-18 00:48:35 +09:00
parent bf958d736b
commit 6fa72c510f

View File

@ -136,23 +136,20 @@ namespace osu.Game.Rulesets.Mania.Difficulty
{ {
get get
{ {
if (isForCurrentRuleset) var mods = new Mod[]
{
return new Mod[]
{
new ManiaModDoubleTime(),
new ManiaModHalfTime(),
new ManiaModEasy(),
new ManiaModHardRock(),
};
}
return new Mod[]
{ {
new ManiaModDoubleTime(), new ManiaModDoubleTime(),
new ManiaModHalfTime(), new ManiaModHalfTime(),
new ManiaModEasy(), new ManiaModEasy(),
new ManiaModHardRock(), new ManiaModHardRock(),
};
if (isForCurrentRuleset)
return mods;
// if we are a convert, we can be played in any key mod.
return mods.Concat(new Mod[]
{
new ManiaModKey1(), new ManiaModKey1(),
new ManiaModKey2(), new ManiaModKey2(),
new ManiaModKey3(), new ManiaModKey3(),
@ -162,7 +159,7 @@ namespace osu.Game.Rulesets.Mania.Difficulty
new ManiaModKey7(), new ManiaModKey7(),
new ManiaModKey8(), new ManiaModKey8(),
new ManiaModKey9(), new ManiaModKey9(),
}; }).ToArray();
} }
} }
} }