Optimize game.updateRoundNumber.
(cherry picked from commit f6ef195a2f901bb8311598a5887ec6f6d36479b3)
This commit is contained in:
parent
44d95a70b7
commit
fc0f70bc7e
|
@ -37425,12 +37425,10 @@
|
|||
}
|
||||
});
|
||||
},
|
||||
updateRoundNumber:function(){
|
||||
game.broadcastAll(function(num1,num2,top){
|
||||
if(ui.cardPileNumber) ui.cardPileNumber.innerHTML=num1+'轮 剩余牌: '+num2;
|
||||
updateRoundNumber:()=>game.broadcastAll((num1,num2,top)=>{
|
||||
if(ui.cardPileNumber) ui.cardPileNumber.innerHTML=`${num1}轮 剩余牌: ${num2}`;
|
||||
_status.pileTop=top;
|
||||
},game.roundNumber,ui.cardPile.childNodes.length,ui.cardPile.firstChild);
|
||||
},
|
||||
},game.roundNumber,ui.cardPile.childNodes.length,ui.cardPile.firstChild),
|
||||
asyncDraw:(players,num,drawDeck,bottom)=>players.forEach((value,index)=>{
|
||||
let num2=1;
|
||||
if(typeof num=='number') num2=num;
|
||||
|
|
Loading…
Reference in New Issue