From 47165e3226f0609d1acc0e1e129a0592d02811c2 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Tue, 13 Dec 2022 20:20:03 -0600 Subject: [PATCH] Set elf training visibility --- src/data/layers/management.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/data/layers/management.tsx b/src/data/layers/management.tsx index 6dd7afc..5676dc2 100644 --- a/src/data/layers/management.tsx +++ b/src/data/layers/management.tsx @@ -7,7 +7,7 @@ import { main } from "data/projEntry"; import { createBar, GenericBar } from "features/bars/bar"; import { createBuyable } from "features/buyable"; import { createClickable } from "features/clickables/clickable"; -import { jsx, showIf } from "features/feature"; +import { jsx, showIf, Visibility } from "features/feature"; import { createMilestone, GenericMilestone } from "features/milestones/milestone"; import { createUpgrade } from "features/upgrades/upgrade"; import { globalBus } from "game/events"; @@ -21,6 +21,7 @@ import { import { persistent } from "game/persistence"; import Decimal, { DecimalSource, format, formatTime, formatWhole } from "util/bignum"; import { Direction } from "util/common"; +import { ProcessedComputable } from "util/computed"; import { render, renderCol, renderGrid } from "util/vue"; import { computed, ComputedRef, ref, Ref, unref, watchEffect } from "vue"; import boxes from "./boxes"; @@ -127,6 +128,7 @@ const layer = createLayer(id, () => { name: string; computedAutoBuyCooldown: ComputedRef; amountOfTimesDone: Ref; + visibility: ProcessedComputable; }, milestones: Array, ...modifiers: Modifier[] @@ -235,6 +237,7 @@ const layer = createLayer(id, () => { canClick() { return currentShown.value !== elf.name; }, + visibility: elf.visibility, name: elf.name, state, displayMilestone,