1
0
Fork 0
mirror of https://github.com/thepaperpilot/Advent-Incremental.git synced 2025-03-28 03:38:46 +00:00

Show layer name instead of "Day complete" above progress bar

This commit is contained in:
thepaperpilot 2022-12-03 16:47:58 -06:00
parent f83a3cb1ec
commit 6d812a8eb6
4 changed files with 7 additions and 5 deletions

View file

@ -574,7 +574,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
<div>
{main.day.value === day
? `Reach ${formatWhole(totalCoalGoal)} ${coal.displayName} to complete the day`
: `Day Complete!`}{" "}
: `${name} Complete!`}{" "}
-{" "}
<button
class="button"

View file

@ -300,7 +300,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
? `Reach ${formatWhole(6)} trained elves and ${formatWhole(coalGoal)} ${
coal.coal.displayName
} to complete the day`
: `Day Complete!`}{" "}
: `${name} Complete!`}{" "}
-{" "}
<button
class="button"

View file

@ -646,7 +646,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
<div>
{main.day.value === day
? `Reach ${formatWhole(1e4)} ${logs.displayName} to complete the day`
: `Day Complete!`}{" "}
: `${name} Complete!`}{" "}
-{" "}
<button
class="button"

View file

@ -179,12 +179,14 @@ const layer = createLayer(id, function (this: BaseLayer) {
<div>
{main.day.value === day
? `Complete the foundation to complete the day`
: `Day Complete!`}
: `${name} Complete!`}
</div>
{render(dayProgress)}
<Spacer />
{render(buildFoundation)}
<div>You have {formatWhole(foundationProgress.value)}% completed</div>
{Decimal.lt(foundationProgress.value, 100) ? (
<div>You have {formatWhole(foundationProgress.value)}% completed</div>
) : null}
<Spacer />
{renderCol(...Object.values(milestones))}
</>