mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 00:21:34 +00:00
Make school 4 not purchasable before day 13
This commit is contained in:
parent
ab89c2de09
commit
4f0b764244
1 changed files with 3 additions and 0 deletions
|
@ -1117,6 +1117,9 @@ 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) &&
|
||||
|
|
Loading…
Reference in a new issue