mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-03-20 13:20:29 +00:00
Fixed some layers activating during mastery before they should
This commit is contained in:
parent
bef5ce94ec
commit
294cd5c989
2 changed files with 13 additions and 7 deletions
|
@ -134,7 +134,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
color: colorText,
|
color: colorText,
|
||||||
width: "160px",
|
width: "160px",
|
||||||
flexGrow: 1
|
flexGrow: 1
|
||||||
}
|
},
|
||||||
|
visibility: () => showIf(!main.isMastery.value || masteryEffectActive.value)
|
||||||
})) as ElfBuyable & { resource: Resource };
|
})) as ElfBuyable & { resource: Resource };
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|
|
@ -91,7 +91,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
}
|
}
|
||||||
paperConversion.convert();
|
paperConversion.convert();
|
||||||
},
|
},
|
||||||
style: "width: 600px; min-height: unset"
|
style: "width: 600px; min-height: unset",
|
||||||
|
visibility: () => showIf(!main.isMastery.value || masteryEffectActive.value)
|
||||||
}));
|
}));
|
||||||
|
|
||||||
function createBook(
|
function createBook(
|
||||||
|
@ -534,11 +535,15 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
) : null}
|
) : null}
|
||||||
<MainDisplay resource={paper} color={color} style="margin-bottom: 0" />
|
<MainDisplay resource={paper} color={color} style="margin-bottom: 0" />
|
||||||
<Spacer />
|
<Spacer />
|
||||||
{render(makePaper)}
|
{!main.isMastery.value || masteryEffectActive.value ? (
|
||||||
<Spacer />
|
<>
|
||||||
{renderGrid(Object.values(upgrades), Object.values(upgrades2))}
|
{render(makePaper)}
|
||||||
<Spacer />
|
<Spacer />
|
||||||
{renderCol(...Object.values(books))}
|
{renderGrid(Object.values(upgrades), Object.values(upgrades2))}
|
||||||
|
<Spacer />
|
||||||
|
{renderCol(...Object.values(books))}
|
||||||
|
</>
|
||||||
|
) : null}
|
||||||
</>
|
</>
|
||||||
)),
|
)),
|
||||||
minimizedDisplay: jsx(() => (
|
minimizedDisplay: jsx(() => (
|
||||||
|
|
Loading…
Add table
Reference in a new issue