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