From f5584b832a6c35ccd83819b9561f1eced5aa8a97 Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Thu, 26 Oct 2023 22:52:31 +0800 Subject: [PATCH] move ui.updateRoundNumber --- game/game.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game/game.js b/game/game.js index 92d262939..bcb7a5158 100644 --- a/game/game.js +++ b/game/game.js @@ -42238,8 +42238,8 @@ game.broadcastAll((roundNumber,pileTop)=>{ if(game.roundNumber!=roundNumber) game.roundNumber=roundNumber; if(_status.pileTop!=pileTop) _status.pileTop=pileTop; + ui.updateRoundNumber(roundNumber); },game.roundNumber,ui.cardPile.firstChild); - ui.updateRoundNumber(); }, asyncDraw:(players,num,drawDeck,bottom)=>players.forEach((value,index)=>{ let num2=1; @@ -57931,9 +57931,9 @@ ].join(''))); } }, - updateRoundNumber:()=>game.broadcastAll((roundNumber,cardPileNumber)=>{ + updateRoundNumber:(cardPileNumber)=>{ if(ui.cardPileNumber) ui.cardPileNumber.innerHTML=`${roundNumber}轮 剩余牌: ${cardPileNumber}`; - },game.roundNumber,ui.cardPile.childElementCount) + }, }; const get={ /**