mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-04-25 10:41:09 +00:00
Fix school being purchasable beyond its purchase limit
This commit is contained in:
parent
55d7a60171
commit
943500732d
1 changed files with 2 additions and 1 deletions
|
@ -1354,7 +1354,8 @@ const layer = createLayer(id, () => {
|
||||||
schoolCost.value.plastic.lte(plastic.plastic.value) &&
|
schoolCost.value.plastic.lte(plastic.plastic.value) &&
|
||||||
schoolCost.value.dye.lte(dyes.dyes.blue.amount.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.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() {
|
onPurchase() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue