Update game.js
This commit is contained in:
parent
f5584b832a
commit
ea1793c0b7
|
@ -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}`;
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue