mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
fixed bug with maxCircles and Emeralds-count if upd-page
This commit is contained in:
@@ -201,6 +201,7 @@ export default {
|
|||||||
balance: 0,
|
balance: 0,
|
||||||
winningAmount: 0,
|
winningAmount: 0,
|
||||||
gamesCircle: 0,
|
gamesCircle: 0,
|
||||||
|
gameTurn: 0,
|
||||||
ErrorClick: '',
|
ErrorClick: '',
|
||||||
gameStart: false,
|
gameStart: false,
|
||||||
offEventPointers: false,
|
offEventPointers: false,
|
||||||
@@ -325,7 +326,7 @@ export default {
|
|||||||
flippedCards: {
|
flippedCards: {
|
||||||
async handler(value) {
|
async handler(value) {
|
||||||
if (value.length < 1 || this.ValidationPlay.endGame === true) return
|
if (value.length < 1 || this.ValidationPlay.endGame === true) return
|
||||||
const maxCircles = 25 - this.amountCrystals
|
const maxCircles = 25 - this.amountCrystals - this.gameTurn
|
||||||
console.log(`MAXCIRLES - ${maxCircles} VALUE: ${value} GAMECIRCLE - ${this.gamesCircle}`)
|
console.log(`MAXCIRLES - ${maxCircles} VALUE: ${value} GAMECIRCLE - ${this.gamesCircle}`)
|
||||||
|
|
||||||
if (this.gameStart !== false) {
|
if (this.gameStart !== false) {
|
||||||
@@ -437,6 +438,8 @@ export default {
|
|||||||
this.amountCrystals = response.MinesCount
|
this.amountCrystals = response.MinesCount
|
||||||
this.amountDeposit = response.PuttedMoney
|
this.amountDeposit = response.PuttedMoney
|
||||||
this.winningAmount = response.WinningMoney
|
this.winningAmount = response.WinningMoney
|
||||||
|
this.emeraldsAmount = 25 - this.amountCrystals - response.CurrentUserTurn
|
||||||
|
this.gameTurn = response.CurrentUserTurn
|
||||||
|
|
||||||
const soundStartGame = new Howl({
|
const soundStartGame = new Howl({
|
||||||
src: ['/sounds/start-game.mp3'],
|
src: ['/sounds/start-game.mp3'],
|
||||||
|
|||||||
Reference in New Issue
Block a user