mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
refactor code, changed variables
This commit is contained in:
@@ -225,11 +225,12 @@ export default {
|
||||
let DepositDiamonds = this.amountSaveDeposit
|
||||
|
||||
const X_Cordinates = value[this.gamesCircle]
|
||||
let findIndex, findX, findY
|
||||
|
||||
if (X_Cordinates >= 5) {
|
||||
const findIndex = Math.ceil(X_Cordinates / 5) * 5
|
||||
const findY = Math.ceil(findIndex / 5)
|
||||
const findX = X_Cordinates % 5
|
||||
findIndex = Math.ceil(X_Cordinates / 5) * 5
|
||||
findY = Math.ceil(findIndex / 5)
|
||||
findX = X_Cordinates % 5
|
||||
console.log(findX, findY)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user