1
0
mirror of synced 2025-01-18 17:14:07 +01:00

Fix dan charts for 1, 2 and 4+ songs (Dan charts can be played with any song count)

This commit is contained in:
0aubsq 2021-12-17 09:03:21 +01:00
parent d706426579
commit ae1183e01a
3 changed files with 5 additions and 5 deletions

View File

@ -336,7 +336,7 @@ namespace TJAPlayer3
/// <summary>
/// 曲ごとの条件を格納する
/// </summary>
public Dan_C[] SongExam = new Dan_C[3];
// public Dan_C[] SongExam = new Dan_C[3];
/// <summary>
/// 条件の達成見込みがなくなったら、真になる。

View File

@ -17,7 +17,7 @@ namespace TJAPlayer3
public static readonly int cMaxExam = 7;
// Max number of songs for a Dan chart
public static readonly int cExamMaxSongs = 3;
public static readonly int cExamMaxSongs = 9;
}
@ -565,7 +565,7 @@ namespace TJAPlayer3
if (ExamChange[i] == true)
{
for (int j = 1; j < CExamInfo.cExamMaxSongs; j++)
for (int j = 1; j < TJAPlayer3.stage選曲.r確定された曲.DanSongs.Count; j++)
{
if (!(TJAPlayer3.stage選曲.r確定された曲.DanSongs[j - 1].Dan_C[i] != null && TJAPlayer3.stage選曲.r確定された曲.DanSongs[NowShowingNumber].Dan_C[i] != null))
@ -1077,7 +1077,7 @@ namespace TJAPlayer3
if (ExamChange[i] == true)
{
for (int j = 1; j < CExamInfo.cExamMaxSongs; j++)
for (int j = 1; j < TJAPlayer3.stage選曲.r確定された曲.DanSongs.Count; j++)
{
if (!(TJAPlayer3.stage選曲.r確定された曲.DanSongs[j - 1].Dan_C[i] != null))
continue;

View File

@ -505,7 +505,7 @@ namespace TJAPlayer3
#region [Partial scores]
for (int i = 0; i < CExamInfo.cExamMaxSongs; i++)
for (int i = 0; i < TJAPlayer3.stage選曲.r確定された曲.DanSongs.Count; i++)
{
if (TJAPlayer3.stage選曲.r確定された曲.DanSongs[i] != null)
{