|
|
|
@ -137,7 +137,9 @@ export default createStore({
@@ -137,7 +137,9 @@ export default createStore({
|
|
|
|
|
let purchasePrice = props.item.economy.buy * props.quantity; |
|
|
|
|
|
|
|
|
|
if (purchasePrice > state.player.money) { |
|
|
|
|
alert("Not enough money to buy "+props.quantity+" of "+props.item.name); |
|
|
|
|
iziToast.error({ |
|
|
|
|
title: "Not enough money to buy "+props.quantity+" of "+props.item.name |
|
|
|
|
}); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|