mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
fix bug in jackpot
This commit is contained in:
@@ -491,7 +491,7 @@ export default {
|
||||
});
|
||||
|
||||
players.forEach((player) => {
|
||||
const numberOfCards = player.WinningPercentage / 10; // Предполагаем, что 10% это 1 карточка
|
||||
const numberOfCards = player.WinningPercentage; // Предполагаем, что 10% это 1 карточка
|
||||
// const numberOfCards = player.WinningPercentage / 10; // Предполагаем, что 10% это 1 карточка
|
||||
for (let i = 0; i < numberOfCards; i++) {
|
||||
if (i == 0) {
|
||||
@@ -687,12 +687,12 @@ export default {
|
||||
if (dataObject.CurrentGame.GameState == "StartGameTimer") {
|
||||
if (!this.isGameTimerStarted) {
|
||||
console.log("Set players");
|
||||
this.idCurrentGame = dataObject.CurrentGame.Id;
|
||||
}
|
||||
this.mapPlayersToSlides(
|
||||
dataObject.CurrentGame.PlayerList,
|
||||
dataObject.CurrentGame.PlayerList
|
||||
);
|
||||
this.idCurrentGame = dataObject.CurrentGame.Id;
|
||||
}
|
||||
this.startGameTimer(dataObject.CurrentGame.StartGameUtc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user