修订初音产生水珠面板技能位置错误

This commit is contained in:
枫谷剑仙 2023-09-04 17:04:28 +08:00
parent 58f3ec0232
commit f0f1e23d6b
1 changed files with 3 additions and 4 deletions

View File

@ -137,8 +137,7 @@ class BoardSet
}
let showIdx = boardSet.boards.findIndex(board=>!board.tableNode.classList.contains(className_displayNone));
if (showIdx < 0 || showIdx >= (boardSet.boards.length - 1)) showIdx = 0;
else showIdx++;
showIdx = (showIdx + 1) % boardSet.boards.length;
for (let i=0;i<boardSet.boards.length;i++) {
boardSet.boards[i].tableNode.classList.toggle(className_displayNone, i !== showIdx);
}
@ -222,7 +221,7 @@ class Board
{
switch (this.columnCount) {
case 7: return columnIndex >= 3 ? columnIndex + 1 : columnIndex;
case 5: return columnIndex >= 4 ? columnIndex - 1 : columnIndex;
case 5: return columnIndex >= 3 ? columnIndex - 1 : columnIndex;
case 6: default: return columnIndex;
}
}
@ -270,7 +269,7 @@ class Board
//设定形状
setShape(matrix, attr, state, blockState)
{
const setOrb = typeof(state) == 'number';
//const setOrb = typeof(state) == 'number';
function fillRow(ri, inputRow)
{
const orbsRow = this.orbsData[ri], blocksRow = this.blocksData[ri];