mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-01-19 03:51:37 +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,
|
||||
width: "160px",
|
||||
flexGrow: 1
|
||||
}
|
||||
},
|
||||
visibility: () => showIf(!main.isMastery.value || masteryEffectActive.value)
|
||||
})) as ElfBuyable & { resource: Resource };
|
||||
|
||||
const {
|
||||
|
|
|
@ -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(() => (
|
||||
|
|
Loading…
Add table
Reference in a new issue