mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-21 16:13:57 +00:00
Fix factory buyables and upgrade grid being visible in day 18
This commit is contained in:
parent
eea9a6f0e8
commit
58939524a3
1 changed files with 15 additions and 15 deletions
|
@ -1057,7 +1057,7 @@ const factory = createLayer(id, () => {
|
||||||
showAmount: false
|
showAmount: false
|
||||||
},
|
},
|
||||||
style: "width: 200px",
|
style: "width: 200px",
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visibility: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
})) as GenericBuyable;
|
})) as GenericBuyable;
|
||||||
const oilFuel = createBuyable(() => ({
|
const oilFuel = createBuyable(() => ({
|
||||||
resource: oil.oil,
|
resource: oil.oil,
|
||||||
|
@ -1071,7 +1071,7 @@ const factory = createLayer(id, () => {
|
||||||
showAmount: false
|
showAmount: false
|
||||||
},
|
},
|
||||||
style: "width: 200px",
|
style: "width: 200px",
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visibility: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
})) as GenericBuyable;
|
})) as GenericBuyable;
|
||||||
const carryToys = createBuyable(() => ({
|
const carryToys = createBuyable(() => ({
|
||||||
resource: boxes.boxes,
|
resource: boxes.boxes,
|
||||||
|
@ -1087,7 +1087,7 @@ const factory = createLayer(id, () => {
|
||||||
showAmount: false
|
showAmount: false
|
||||||
},
|
},
|
||||||
style: "width: 200px",
|
style: "width: 200px",
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visibility: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
})) as GenericBuyable;
|
})) as GenericBuyable;
|
||||||
const factoryBuyables = { expandFactory, oilFuel, carryToys };
|
const factoryBuyables = { expandFactory, oilFuel, carryToys };
|
||||||
const upgrades = [
|
const upgrades = [
|
||||||
|
@ -1100,7 +1100,7 @@ const factory = createLayer(id, () => {
|
||||||
description:
|
description:
|
||||||
"Double sawmill consumption and production and metal supplier efficiency"
|
"Double sawmill consumption and production and metal supplier efficiency"
|
||||||
},
|
},
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visibility: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
})),
|
})),
|
||||||
createUpgrade(() => ({
|
createUpgrade(() => ({
|
||||||
resource: paper.paper,
|
resource: paper.paper,
|
||||||
|
@ -1109,7 +1109,7 @@ const factory = createLayer(id, () => {
|
||||||
title: "News Ticker",
|
title: "News Ticker",
|
||||||
description: "Paper boosts tick speed"
|
description: "Paper boosts tick speed"
|
||||||
},
|
},
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visibility: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
})),
|
})),
|
||||||
createUpgrade(() => ({
|
createUpgrade(() => ({
|
||||||
resource: toys.trucks,
|
resource: toys.trucks,
|
||||||
|
@ -1118,7 +1118,7 @@ const factory = createLayer(id, () => {
|
||||||
title: "Haul wood in trucks",
|
title: "Haul wood in trucks",
|
||||||
description: "Trucks multiply wood gain"
|
description: "Trucks multiply wood gain"
|
||||||
},
|
},
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visibility: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
})),
|
})),
|
||||||
createUpgrade(() => ({
|
createUpgrade(() => ({
|
||||||
resource: metal.metal,
|
resource: metal.metal,
|
||||||
|
@ -1127,7 +1127,7 @@ const factory = createLayer(id, () => {
|
||||||
title: "Diamond-tipped drills",
|
title: "Diamond-tipped drills",
|
||||||
description: "Drill power ^1.2"
|
description: "Drill power ^1.2"
|
||||||
},
|
},
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visibility: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
}))
|
}))
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
@ -1138,7 +1138,7 @@ const factory = createLayer(id, () => {
|
||||||
title: "Larger wood pieces",
|
title: "Larger wood pieces",
|
||||||
description: "Wooden block producers produce 3x as much"
|
description: "Wooden block producers produce 3x as much"
|
||||||
},
|
},
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visibility: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
})),
|
})),
|
||||||
createUpgrade(() => ({
|
createUpgrade(() => ({
|
||||||
resource: dyes.dyes.red.amount,
|
resource: dyes.dyes.red.amount,
|
||||||
|
@ -1147,7 +1147,7 @@ const factory = createLayer(id, () => {
|
||||||
title: "Colorful clothes",
|
title: "Colorful clothes",
|
||||||
description: "Dye producers produce 4x as much"
|
description: "Dye producers produce 4x as much"
|
||||||
},
|
},
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visibility: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
})),
|
})),
|
||||||
createUpgrade(() => ({
|
createUpgrade(() => ({
|
||||||
resource: plastic.plastic,
|
resource: plastic.plastic,
|
||||||
|
@ -1156,7 +1156,7 @@ const factory = createLayer(id, () => {
|
||||||
title: "Improved plastic producers",
|
title: "Improved plastic producers",
|
||||||
description: "Plastic producers produce 4x as much"
|
description: "Plastic producers produce 4x as much"
|
||||||
},
|
},
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visibility: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
})),
|
})),
|
||||||
createUpgrade(() => ({
|
createUpgrade(() => ({
|
||||||
resource: oil.oil,
|
resource: oil.oil,
|
||||||
|
@ -1165,7 +1165,7 @@ const factory = createLayer(id, () => {
|
||||||
title: "Capitalism",
|
title: "Capitalism",
|
||||||
description: "Console production is tripled"
|
description: "Console production is tripled"
|
||||||
},
|
},
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visibility: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
}))
|
}))
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
@ -1176,7 +1176,7 @@ const factory = createLayer(id, () => {
|
||||||
title: "Brighter work rooms",
|
title: "Brighter work rooms",
|
||||||
description: "Unused electricity makes ticks faster"
|
description: "Unused electricity makes ticks faster"
|
||||||
},
|
},
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visibility: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
})),
|
})),
|
||||||
createUpgrade(() => ({
|
createUpgrade(() => ({
|
||||||
resource: dyes.dyes.blue.amount,
|
resource: dyes.dyes.blue.amount,
|
||||||
|
@ -1185,7 +1185,7 @@ const factory = createLayer(id, () => {
|
||||||
title: "Colorful teddy bears",
|
title: "Colorful teddy bears",
|
||||||
description: "Teddy bears produce 2x as much"
|
description: "Teddy bears produce 2x as much"
|
||||||
},
|
},
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visibility: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
})),
|
})),
|
||||||
createUpgrade(() => ({
|
createUpgrade(() => ({
|
||||||
resource: dyes.dyes.black.amount,
|
resource: dyes.dyes.black.amount,
|
||||||
|
@ -1194,7 +1194,7 @@ const factory = createLayer(id, () => {
|
||||||
title: "New Colors",
|
title: "New Colors",
|
||||||
description: "Unlock white dye"
|
description: "Unlock white dye"
|
||||||
},
|
},
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visibility: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
})),
|
})),
|
||||||
createUpgrade(() => ({
|
createUpgrade(() => ({
|
||||||
resource: boxes.boxes,
|
resource: boxes.boxes,
|
||||||
|
@ -1203,7 +1203,7 @@ const factory = createLayer(id, () => {
|
||||||
title: "Carry ticks in boxes",
|
title: "Carry ticks in boxes",
|
||||||
description: "Tick speed x1.5"
|
description: "Tick speed x1.5"
|
||||||
},
|
},
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visibility: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
}))
|
}))
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue