mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-21 16:13:57 +00:00
Updated management progress display
This commit is contained in:
parent
327dac3129
commit
944329a271
1 changed files with 8 additions and 3 deletions
|
@ -22,7 +22,7 @@ import { persistent } from "game/persistence";
|
|||
import Decimal, { DecimalSource, format, formatTime, formatWhole } from "util/bignum";
|
||||
import { Direction } from "util/common";
|
||||
import { render, renderCol, renderGrid } from "util/vue";
|
||||
import { computed, ComputedRef, ref, Ref } from "vue";
|
||||
import { computed, ComputedRef, ref, Ref, unref } from "vue";
|
||||
import elves from "./elves";
|
||||
import trees from "./trees";
|
||||
import paper from "./paper";
|
||||
|
@ -59,8 +59,13 @@ const layer = createLayer(id, () => {
|
|||
display: jsx(() =>
|
||||
main.day.value === day ? (
|
||||
<>
|
||||
{formatWhole(totalElfLevels.value)}/{formatWhole(elves.totalElves.value * 5)}{" "}
|
||||
elf levels
|
||||
{formatWhole(
|
||||
Decimal.times(
|
||||
unref(dayProgress.progress),
|
||||
main.day.value === advancedDay ? 80 : 36
|
||||
)
|
||||
)}
|
||||
/{main.day.value === advancedDay ? 80 : 36} elf levels
|
||||
</>
|
||||
) : (
|
||||
""
|
||||
|
|
Loading…
Reference in a new issue