Update game.js

This commit is contained in:
Spmario233 2023-10-26 22:53:51 +08:00
parent f5584b832a
commit ea1793c0b7
1 changed files with 4 additions and 4 deletions

View File

@ -42235,11 +42235,11 @@
});
},
updateRoundNumber:()=>{
game.broadcastAll((roundNumber,pileTop)=>{
game.broadcastAll((roundNumber,pileTop,pileNumber)=>{
if(game.roundNumber!=roundNumber) game.roundNumber=roundNumber;
if(_status.pileTop!=pileTop) _status.pileTop=pileTop;
ui.updateRoundNumber(roundNumber);
},game.roundNumber,ui.cardPile.firstChild);
ui.updateRoundNumber(roundNumber,pileNumber);
},game.roundNumber,ui.cardPile.firstChild,ui.cardPile.childElementCount);
},
asyncDraw:(players,num,drawDeck,bottom)=>players.forEach((value,index)=>{
let num2=1;
@ -57931,7 +57931,7 @@
].join('')));
}
},
updateRoundNumber:(cardPileNumber)=>{
updateRoundNumber:(roundNumber,cardPileNumber)=>{
if(ui.cardPileNumber) ui.cardPileNumber.innerHTML=`${roundNumber}轮 剩余牌: ${cardPileNumber}`;
},
};