diff --git a/src/chart/convert/official.js b/src/chart/convert/official.js index abea266..5503dff 100644 --- a/src/chart/convert/official.js +++ b/src/chart/convert/official.js @@ -12,7 +12,7 @@ export default function OfficialChartConverter(_chart) rawChart.judgeLineList.forEach((_judgeline, index) => { - let judgeline = new Judgeline({ id: index + 1 }); + let judgeline = new Judgeline({ id: index }); let events = new EventLayer(); let notes = []; @@ -76,7 +76,7 @@ export default function OfficialChartConverter(_chart) notes.sort((a, b) => a.time - b.time); notes.forEach((note, noteIndex) => { - note.id = noteIndex + 1; + note.id = noteIndex; chart.notes.push(note); }); diff --git a/src/chart/convert/phiedit.js b/src/chart/convert/phiedit.js index 9c32cff..9e95de9 100644 --- a/src/chart/convert/phiedit.js +++ b/src/chart/convert/phiedit.js @@ -294,7 +294,7 @@ export default function PhiEditChartConverter(_chart) } if (!judgelines[event.lineId]) { - judgelines[event.lineId] = new Judgeline({ id: event.lineId + 1 }); + judgelines[event.lineId] = new Judgeline({ id: event.lineId }); judgelines[event.lineId].eventLayers.push(new EventLayer()); } @@ -427,7 +427,7 @@ export default function PhiEditChartConverter(_chart) commands.notePerLine[lineId].sort((a, b) => a.time - b.time); commands.notePerLine[lineId].forEach((note, noteIndex) => { - note.id = noteIndex + 1; + note.id = noteIndex; notes.push(note); }); } diff --git a/src/chart/convert/rephiedit.js b/src/chart/convert/rephiedit.js index 286e23d..43b1ffd 100644 --- a/src/chart/convert/rephiedit.js +++ b/src/chart/convert/rephiedit.js @@ -107,7 +107,7 @@ export default function RePhiEditChartConverter(_chart) rawChart.judgeLineList.forEach((_judgeline, judgelineIndex) => { let judgeline = new Judgeline({ - id : judgelineIndex + 1, + id : judgelineIndex, texture : _judgeline.Texture != 'line.png' ? _judgeline.Texture : null, parentLine : _judgeline.father >= 0 ? _judgeline.father + 1 : null, isCover : _judgeline.isCover == 1 @@ -327,7 +327,7 @@ export default function RePhiEditChartConverter(_chart) // 推送 Note chart.notes.push(new Note({ - id : noteIndex + 1, + id : noteIndex, type : ( _note.type == 1 ? 1 : _note.type == 2 ? 3 :