mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 00:21:34 +00:00
Management tweaks
This commit is contained in:
parent
1a4beb4f4e
commit
3128e2d290
1 changed files with 17 additions and 15 deletions
|
@ -1,16 +1,17 @@
|
||||||
import { jsx, JSXFunction, showIf } from "features/feature";
|
import Spacer from "components/layout/Spacer.vue";
|
||||||
import { createLayer } from "game/layers";
|
|
||||||
import { main } from "data/projEntry";
|
|
||||||
import elves from "./elves";
|
|
||||||
import Decimal, { DecimalSource, format, formatWhole } from "util/bignum";
|
|
||||||
import { createMilestone, GenericMilestone } from "features/milestones/milestone";
|
|
||||||
import { render, renderRow } from "util/vue";
|
|
||||||
import { createClickable } from "features/clickables/clickable";
|
|
||||||
import { computed } from "vue";
|
|
||||||
import { createBar, GenericBar } from "features/bars/bar";
|
|
||||||
import { Direction } from "util/common";
|
|
||||||
import { createCollapsibleMilestones } from "data/common";
|
import { createCollapsibleMilestones } from "data/common";
|
||||||
|
import { main } from "data/projEntry";
|
||||||
|
import { createBar, GenericBar } from "features/bars/bar";
|
||||||
|
import { createClickable } from "features/clickables/clickable";
|
||||||
|
import { jsx, JSXFunction, showIf } from "features/feature";
|
||||||
|
import { createMilestone, GenericMilestone } from "features/milestones/milestone";
|
||||||
|
import { createLayer } from "game/layers";
|
||||||
import { persistent } from "game/persistence";
|
import { persistent } from "game/persistence";
|
||||||
|
import Decimal, { DecimalSource, format, formatWhole } from "util/bignum";
|
||||||
|
import { Direction } from "util/common";
|
||||||
|
import { render, renderGrid } from "util/vue";
|
||||||
|
import { computed } from "vue";
|
||||||
|
import elves from "./elves";
|
||||||
|
|
||||||
const id = "management";
|
const id = "management";
|
||||||
const day = 12;
|
const day = 12;
|
||||||
|
@ -59,7 +60,7 @@ const layer = createLayer(id, () => {
|
||||||
{elf.name} is currently at level {formatWhole(level.value)}! They have{" "}
|
{elf.name} is currently at level {formatWhole(level.value)}! They have{" "}
|
||||||
{format(exp.value)}/{format(exp.value)} experience points.{" "}
|
{format(exp.value)}/{format(exp.value)} experience points.{" "}
|
||||||
{currentShown.value !== elf.name
|
{currentShown.value !== elf.name
|
||||||
? "Click to see this elves' milestone."
|
? "Click to see this elf's milestones."
|
||||||
: undefined}
|
: undefined}
|
||||||
{render(bar)}
|
{render(bar)}
|
||||||
</>
|
</>
|
||||||
|
@ -231,13 +232,14 @@ const layer = createLayer(id, () => {
|
||||||
color,
|
color,
|
||||||
minWidth: 700,
|
minWidth: 700,
|
||||||
elfTraining,
|
elfTraining,
|
||||||
|
currentShown,
|
||||||
display: jsx(() => (
|
display: jsx(() => (
|
||||||
<>
|
<>
|
||||||
{main.day.value === day ? `Get all elves to level 10.` : `${name} Complete!`}
|
{main.day.value === day ? `Get all elves to level 10.` : `${name} Complete!`}
|
||||||
{render(dayProgress)}
|
{render(dayProgress)}
|
||||||
{renderRow(...treeElfTraining)}
|
<Spacer />
|
||||||
{renderRow(...coalElfTraining)}
|
{renderGrid(treeElfTraining, coalElfTraining, fireElfTraining)}
|
||||||
{renderRow(...fireElfTraining)}
|
<Spacer />
|
||||||
{msDisplay()}
|
{msDisplay()}
|
||||||
</>
|
</>
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in a new issue