fix bug in jackpot

This commit is contained in:
Hepatica
2024-02-25 05:15:38 +01:00
parent a8708cf50e
commit 71264d32e2

View File

@@ -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);
}