From 939488bf5b40a03d0466229630362e17d86c063f Mon Sep 17 00:00:00 2001 From: circle-gon <97845741+circle-gon@users.noreply.github.com> Date: Tue, 13 Dec 2022 15:43:46 -0500 Subject: [PATCH] makes it clear there is a school limit --- src/data/layers/management.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/data/layers/management.tsx b/src/data/layers/management.tsx index 5a172e7..8ecdd39 100644 --- a/src/data/layers/management.tsx +++ b/src/data/layers/management.tsx @@ -1100,7 +1100,7 @@ const layer = createLayer(id, () => {

Build a School

You gotta start somewhere, right? Each school increases the maximum level for - elves by 1, up to {main.day.value == 12 ? 3 : 5}. + elves by 1, maximum of {main.day.value === 12 ? 3 : 5} schools.
You have {formatWhole(schools.amount.value)} schools, which are currently @@ -1117,9 +1117,6 @@ const layer = createLayer(id, () => { )), canPurchase(): boolean { - if (Decimal.gte(schools.amount.value, 3) && !main.days[advancedDay - 1].opened.value) { - return false; - } return ( schoolCost.value.wood.lte(trees.logs.value) && schoolCost.value.coal.lte(coal.coal.value) && @@ -1143,7 +1140,10 @@ const layer = createLayer(id, () => { plastic.plastic.value = Decimal.sub(plastic.plastic.value, schoolCost.value.plastic); this.amount.value = Decimal.add(this.amount.value, 1); }, - purchaseLimit: 5, + purchaseLimit() { + if (main.days[advancedDay - 1].opened.value) return 5 + return 3 + }, visibility: computed(() => showIf(teaching.bought.value)), style: "width: 600px" }));