mirror of
https://github.com/ppy/osu
synced 2025-01-07 14:49:57 +00:00
Update with pattern changes.
This commit is contained in:
parent
7d417e4219
commit
8077ddf944
@ -95,7 +95,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
|
|||||||
var pattern = new Pattern();
|
var pattern = new Pattern();
|
||||||
|
|
||||||
for (int i = RandomStart; i < AvailableColumns; i++)
|
for (int i = RandomStart; i < AvailableColumns; i++)
|
||||||
if (PreviousPattern.IsFilled(i))
|
if (PreviousPattern.ColumnHasObject(i))
|
||||||
addToPattern(pattern, RandomStart + AvailableColumns - i - 1);
|
addToPattern(pattern, RandomStart + AvailableColumns - i - 1);
|
||||||
|
|
||||||
return pattern;
|
return pattern;
|
||||||
@ -122,7 +122,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
|
|||||||
var pattern = new Pattern();
|
var pattern = new Pattern();
|
||||||
|
|
||||||
for (int i = RandomStart; i < AvailableColumns; i++)
|
for (int i = RandomStart; i < AvailableColumns; i++)
|
||||||
if (PreviousPattern.IsFilled(i))
|
if (PreviousPattern.ColumnHasObject(i))
|
||||||
addToPattern(pattern, i);
|
addToPattern(pattern, i);
|
||||||
|
|
||||||
return pattern;
|
return pattern;
|
||||||
@ -212,12 +212,12 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
|
|||||||
bool allowStacking = (convertType & PatternType.ForceNotStack) == 0;
|
bool allowStacking = (convertType & PatternType.ForceNotStack) == 0;
|
||||||
|
|
||||||
if (!allowStacking)
|
if (!allowStacking)
|
||||||
noteCount = Math.Min(noteCount, AvailableColumns - RandomStart - PreviousPattern.ColumnsFilled);
|
noteCount = Math.Min(noteCount, AvailableColumns - RandomStart - PreviousPattern.ColumnWithObjects);
|
||||||
|
|
||||||
int nextColumn = GetColumn((HitObject as IHasXPosition)?.X ?? 0, true);
|
int nextColumn = GetColumn((HitObject as IHasXPosition)?.X ?? 0, true);
|
||||||
for (int i = 0; i < noteCount; i++)
|
for (int i = 0; i < noteCount; i++)
|
||||||
{
|
{
|
||||||
while (pattern.IsFilled(nextColumn) || (PreviousPattern.IsFilled(nextColumn) && !allowStacking))
|
while (pattern.ColumnHasObject(nextColumn) || (PreviousPattern.ColumnHasObject(nextColumn) && !allowStacking))
|
||||||
{
|
{
|
||||||
if ((convertType & PatternType.Gathered) > 0)
|
if ((convertType & PatternType.Gathered) > 0)
|
||||||
{
|
{
|
||||||
@ -278,7 +278,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
|
|||||||
int nextColumn = Random.Next(RandomStart, columnLimit);
|
int nextColumn = Random.Next(RandomStart, columnLimit);
|
||||||
for (int i = 0; i < noteCount; i++)
|
for (int i = 0; i < noteCount; i++)
|
||||||
{
|
{
|
||||||
while (pattern.IsFilled(nextColumn))
|
while (pattern.ColumnHasObject(nextColumn))
|
||||||
nextColumn = Random.Next(RandomStart, columnLimit);
|
nextColumn = Random.Next(RandomStart, columnLimit);
|
||||||
|
|
||||||
// Add normal note
|
// Add normal note
|
||||||
|
Loading…
Reference in New Issue
Block a user