Fixed some layers activating during mastery before they should

This commit is contained in:
thepaperpilot 2022-12-18 16:41:00 -06:00
parent bef5ce94ec
commit 294cd5c989
2 changed files with 13 additions and 7 deletions

View file

@ -134,7 +134,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
color: colorText,
width: "160px",
flexGrow: 1
}
},
visibility: () => showIf(!main.isMastery.value || masteryEffectActive.value)
})) as ElfBuyable & { resource: Resource };
const {

View file

@ -91,7 +91,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
}
paperConversion.convert();
},
style: "width: 600px; min-height: unset"
style: "width: 600px; min-height: unset",
visibility: () => showIf(!main.isMastery.value || masteryEffectActive.value)
}));
function createBook(
@ -534,11 +535,15 @@ const layer = createLayer(id, function (this: BaseLayer) {
) : null}
<MainDisplay resource={paper} color={color} style="margin-bottom: 0" />
<Spacer />
{render(makePaper)}
<Spacer />
{renderGrid(Object.values(upgrades), Object.values(upgrades2))}
<Spacer />
{renderCol(...Object.values(books))}
{!main.isMastery.value || masteryEffectActive.value ? (
<>
{render(makePaper)}
<Spacer />
{renderGrid(Object.values(upgrades), Object.values(upgrades2))}
<Spacer />
{renderCol(...Object.values(books))}
</>
) : null}
</>
)),
minimizedDisplay: jsx(() => (