mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 13:23:03 +08:00
Allow 10k to be played on a single stage
This commit is contained in:
parent
70ef6df4fb
commit
b881293b98
@ -47,7 +47,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
|
|||||||
{
|
{
|
||||||
TargetColumns = (int)Math.Max(1, roundedCircleSize);
|
TargetColumns = (int)Math.Max(1, roundedCircleSize);
|
||||||
|
|
||||||
if (TargetColumns >= 10)
|
if (TargetColumns > 10)
|
||||||
{
|
{
|
||||||
TargetColumns /= 2;
|
TargetColumns /= 2;
|
||||||
Dual = true;
|
Dual = true;
|
||||||
|
@ -250,7 +250,7 @@ namespace osu.Game.Rulesets.Mania
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
for (int i = 1; i <= 9; i++)
|
for (int i = 1; i <= 10; i++)
|
||||||
yield return (int)PlayfieldType.Single + i;
|
yield return (int)PlayfieldType.Single + i;
|
||||||
for (int i = 2; i <= 18; i += 2)
|
for (int i = 2; i <= 18; i += 2)
|
||||||
yield return (int)PlayfieldType.Dual + i;
|
yield return (int)PlayfieldType.Dual + i;
|
||||||
@ -262,26 +262,53 @@ namespace osu.Game.Rulesets.Mania
|
|||||||
switch (getPlayfieldType(variant))
|
switch (getPlayfieldType(variant))
|
||||||
{
|
{
|
||||||
case PlayfieldType.Single:
|
case PlayfieldType.Single:
|
||||||
return new VariantMappingGenerator
|
switch (variant)
|
||||||
{
|
{
|
||||||
LeftKeys = new[]
|
case 10:
|
||||||
{
|
// 10K is special because it extents one key towards the centre of the keyboard (V/N), rather than towards the edges of the keyboard.
|
||||||
InputKey.A,
|
return new VariantMappingGenerator
|
||||||
InputKey.S,
|
{
|
||||||
InputKey.D,
|
LeftKeys = new[]
|
||||||
InputKey.F
|
{
|
||||||
},
|
InputKey.A,
|
||||||
RightKeys = new[]
|
InputKey.S,
|
||||||
{
|
InputKey.D,
|
||||||
InputKey.J,
|
InputKey.F,
|
||||||
InputKey.K,
|
InputKey.V
|
||||||
InputKey.L,
|
},
|
||||||
InputKey.Semicolon
|
RightKeys = new[]
|
||||||
},
|
{
|
||||||
SpecialKey = InputKey.Space,
|
InputKey.N,
|
||||||
SpecialAction = ManiaAction.Special1,
|
InputKey.J,
|
||||||
NormalActionStart = ManiaAction.Key1,
|
InputKey.K,
|
||||||
}.GenerateKeyBindingsFor(variant, out _);
|
InputKey.L,
|
||||||
|
InputKey.Semicolon,
|
||||||
|
},
|
||||||
|
NormalActionStart = ManiaAction.Key1,
|
||||||
|
}.GenerateKeyBindingsFor(variant, out _);
|
||||||
|
|
||||||
|
default:
|
||||||
|
return new VariantMappingGenerator
|
||||||
|
{
|
||||||
|
LeftKeys = new[]
|
||||||
|
{
|
||||||
|
InputKey.A,
|
||||||
|
InputKey.S,
|
||||||
|
InputKey.D,
|
||||||
|
InputKey.F
|
||||||
|
},
|
||||||
|
RightKeys = new[]
|
||||||
|
{
|
||||||
|
InputKey.J,
|
||||||
|
InputKey.K,
|
||||||
|
InputKey.L,
|
||||||
|
InputKey.Semicolon
|
||||||
|
},
|
||||||
|
SpecialKey = InputKey.Space,
|
||||||
|
SpecialAction = ManiaAction.Special1,
|
||||||
|
NormalActionStart = ManiaAction.Key1,
|
||||||
|
}.GenerateKeyBindingsFor(variant, out _);
|
||||||
|
}
|
||||||
|
|
||||||
case PlayfieldType.Dual:
|
case PlayfieldType.Dual:
|
||||||
int keys = getDualStageKeyCount(variant);
|
int keys = getDualStageKeyCount(variant);
|
||||||
|
Loading…
Reference in New Issue
Block a user