Update game.js
This commit is contained in:
parent
f5584b832a
commit
ea1793c0b7
|
@ -42235,11 +42235,11 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
updateRoundNumber:()=>{
|
updateRoundNumber:()=>{
|
||||||
game.broadcastAll((roundNumber,pileTop)=>{
|
game.broadcastAll((roundNumber,pileTop,pileNumber)=>{
|
||||||
if(game.roundNumber!=roundNumber) game.roundNumber=roundNumber;
|
if(game.roundNumber!=roundNumber) game.roundNumber=roundNumber;
|
||||||
if(_status.pileTop!=pileTop) _status.pileTop=pileTop;
|
if(_status.pileTop!=pileTop) _status.pileTop=pileTop;
|
||||||
ui.updateRoundNumber(roundNumber);
|
ui.updateRoundNumber(roundNumber,pileNumber);
|
||||||
},game.roundNumber,ui.cardPile.firstChild);
|
},game.roundNumber,ui.cardPile.firstChild,ui.cardPile.childElementCount);
|
||||||
},
|
},
|
||||||
asyncDraw:(players,num,drawDeck,bottom)=>players.forEach((value,index)=>{
|
asyncDraw:(players,num,drawDeck,bottom)=>players.forEach((value,index)=>{
|
||||||
let num2=1;
|
let num2=1;
|
||||||
|
@ -57931,7 +57931,7 @@
|
||||||
].join('')));
|
].join('')));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
updateRoundNumber:(cardPileNumber)=>{
|
updateRoundNumber:(roundNumber,cardPileNumber)=>{
|
||||||
if(ui.cardPileNumber) ui.cardPileNumber.innerHTML=`${roundNumber}轮 剩余牌: ${cardPileNumber}`;
|
if(ui.cardPileNumber) ui.cardPileNumber.innerHTML=`${roundNumber}轮 剩余牌: ${cardPileNumber}`;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue