forked from rDrama/rDrama
fix buying awards in modal
parent
43a2f828d0
commit
68a7053114
|
@ -92,11 +92,9 @@ function vote(type, id, dir) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function pick(kind, price, coins, marseybux) {
|
function pick(kind, price, coins, marseybux) {
|
||||||
console.log(price)
|
price = parseInt(price)
|
||||||
console.log(coins)
|
price = coins(price)
|
||||||
console.log(marseybux)
|
price = marseybux(price)
|
||||||
console.log(coins >= price)
|
|
||||||
console.log(marseybux >= price)
|
|
||||||
|
|
||||||
const buy1 = document.getElementById('buy1')
|
const buy1 = document.getElementById('buy1')
|
||||||
if (coins >= price && kind != "grass")
|
if (coins >= price && kind != "grass")
|
||||||
|
|
Loading…
Reference in New Issue