forked from rDrama/rDrama
fix buying in award modal
parent
925cdcad3a
commit
cec4cc8530
|
@ -97,13 +97,13 @@ function pick(kind, price, coins, marseybux) {
|
||||||
marseybux = parseInt(marseybux)
|
marseybux = parseInt(marseybux)
|
||||||
|
|
||||||
const buy1 = document.getElementById('buy1')
|
const buy1 = document.getElementById('buy1')
|
||||||
if (coins >= price && kind != "grass")
|
if (marseybux >= price && kind != "grass")
|
||||||
buy1.disabled=false;
|
buy1.disabled=false;
|
||||||
else
|
else
|
||||||
buy1.disabled=true;
|
buy1.disabled=true;
|
||||||
|
|
||||||
const buy2 = document.getElementById('buy2')
|
const buy2 = document.getElementById('buy2')
|
||||||
if (marseybux >= price && kind != "benefactor")
|
if (coins >= price && kind != "benefactor")
|
||||||
buy2.disabled=false;
|
buy2.disabled=false;
|
||||||
else
|
else
|
||||||
buy2.disabled=true;
|
buy2.disabled=true;
|
||||||
|
|
Loading…
Reference in New Issue