mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-04-01 13:31:01 +00:00
Set elf training visibility
This commit is contained in:
parent
c56bd8f547
commit
47165e3226
1 changed files with 4 additions and 1 deletions
|
@ -7,7 +7,7 @@ import { main } from "data/projEntry";
|
||||||
import { createBar, GenericBar } from "features/bars/bar";
|
import { createBar, GenericBar } from "features/bars/bar";
|
||||||
import { createBuyable } from "features/buyable";
|
import { createBuyable } from "features/buyable";
|
||||||
import { createClickable } from "features/clickables/clickable";
|
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 { createMilestone, GenericMilestone } from "features/milestones/milestone";
|
||||||
import { createUpgrade } from "features/upgrades/upgrade";
|
import { createUpgrade } from "features/upgrades/upgrade";
|
||||||
import { globalBus } from "game/events";
|
import { globalBus } from "game/events";
|
||||||
|
@ -21,6 +21,7 @@ import {
|
||||||
import { persistent } from "game/persistence";
|
import { persistent } from "game/persistence";
|
||||||
import Decimal, { DecimalSource, format, formatTime, formatWhole } from "util/bignum";
|
import Decimal, { DecimalSource, format, formatTime, formatWhole } from "util/bignum";
|
||||||
import { Direction } from "util/common";
|
import { Direction } from "util/common";
|
||||||
|
import { ProcessedComputable } from "util/computed";
|
||||||
import { render, renderCol, renderGrid } from "util/vue";
|
import { render, renderCol, renderGrid } from "util/vue";
|
||||||
import { computed, ComputedRef, ref, Ref, unref, watchEffect } from "vue";
|
import { computed, ComputedRef, ref, Ref, unref, watchEffect } from "vue";
|
||||||
import boxes from "./boxes";
|
import boxes from "./boxes";
|
||||||
|
@ -127,6 +128,7 @@ const layer = createLayer(id, () => {
|
||||||
name: string;
|
name: string;
|
||||||
computedAutoBuyCooldown: ComputedRef<DecimalSource>;
|
computedAutoBuyCooldown: ComputedRef<DecimalSource>;
|
||||||
amountOfTimesDone: Ref<number>;
|
amountOfTimesDone: Ref<number>;
|
||||||
|
visibility: ProcessedComputable<Visibility>;
|
||||||
},
|
},
|
||||||
milestones: Array<GenericMilestone>,
|
milestones: Array<GenericMilestone>,
|
||||||
...modifiers: Modifier[]
|
...modifiers: Modifier[]
|
||||||
|
@ -235,6 +237,7 @@ const layer = createLayer(id, () => {
|
||||||
canClick() {
|
canClick() {
|
||||||
return currentShown.value !== elf.name;
|
return currentShown.value !== elf.name;
|
||||||
},
|
},
|
||||||
|
visibility: elf.visibility,
|
||||||
name: elf.name,
|
name: elf.name,
|
||||||
state,
|
state,
|
||||||
displayMilestone,
|
displayMilestone,
|
||||||
|
|
Loading…
Add table
Reference in a new issue