From ea1793c0b7f08fe6a542ede60177dcf71261d8fc Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Thu, 26 Oct 2023 22:53:51 +0800 Subject: [PATCH] Update game.js --- game/game.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/game/game.js b/game/game.js index bcb7a5158..feb9d4766 100644 --- a/game/game.js +++ b/game/game.js @@ -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}`; }, };