Skip to content

Commit

Permalink
ban giant diagonal twists (was only possible with no pads excluded)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwabis committed Oct 16, 2024
1 parent 812b20d commit 817a441
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion osu.Game.Rulesets.PumpTrainer/Beatmaps/NextHitObjectGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,47 @@ private void banColumnsCausingBannedPatterns(List<Column> candidateColumns, Foot
}
}

// Ban diagonal twists
// Ban giant diagonal twists no matter what
if (previousColumn == Column.P1C)
{
if (previousPreviousColumn == Column.P1DL)
{
candidateColumns.Remove(Column.P2UL);
}
else if (previousPreviousColumn == Column.P1UL)
{
candidateColumns.Remove(Column.P2DL);
}
else if (previousPreviousColumn == Column.P2DL)
{
candidateColumns.Remove(Column.P1UL);
}
else if (previousPreviousColumn == Column.P2UL)
{
candidateColumns.Remove(Column.P1DL);
}
}
else if (previousColumn == Column.P2C)
{
if (previousPreviousColumn == Column.P2DR)
{
candidateColumns.Remove(Column.P1UR);
}
else if (previousPreviousColumn == Column.P2UR)
{
candidateColumns.Remove(Column.P1DR);
}
else if (previousPreviousColumn == Column.P1DR)
{
candidateColumns.Remove(Column.P2UR);
}
else if (previousPreviousColumn == Column.P1UR)
{
candidateColumns.Remove(Column.P2DR);
}
}

// Ban diagonal twists (single pad)
if (random.NextDouble() > Settings.DiagonalTwistFrequency)
{
if (previousColumn == Column.P1C)
Expand Down

0 comments on commit 817a441

Please sign in to comment.