Fix school being purchasable beyond its purchase limit

This commit is contained in:
thepaperpilot 2022-12-13 22:56:42 -06:00
parent 55d7a60171
commit 943500732d

View file

@ -1354,7 +1354,8 @@ const layer = createLayer(id, () => {
schoolCost.value.plastic.lte(plastic.plastic.value) &&
schoolCost.value.dye.lte(dyes.dyes.blue.amount.value) &&
schoolCost.value.dye.lte(dyes.dyes.red.amount.value) &&
schoolCost.value.dye.lte(dyes.dyes.yellow.amount.value)
schoolCost.value.dye.lte(dyes.dyes.yellow.amount.value) &&
Decimal.lt(schools.amount.value, unref(schools.purchaseLimit))
);
},
onPurchase() {