Make school 4 not purchasable before day 13

This commit is contained in:
thepaperpilot 2022-12-13 11:22:34 -06:00
parent ab89c2de09
commit 4f0b764244

View file

@ -1117,6 +1117,9 @@ const layer = createLayer(id, () => {
</> </>
)), )),
canPurchase(): boolean { canPurchase(): boolean {
if (Decimal.gte(schools.amount.value, 3) && !main.days[advancedDay - 1].opened.value) {
return false;
}
return ( return (
schoolCost.value.wood.lte(trees.logs.value) && schoolCost.value.wood.lte(trees.logs.value) &&
schoolCost.value.coal.lte(coal.coal.value) && schoolCost.value.coal.lte(coal.coal.value) &&