mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-04-01 21:41:00 +00:00
Merge branch 'main' into day-24-packing
This commit is contained in:
commit
03f6325704
3 changed files with 24 additions and 15 deletions
|
@ -554,7 +554,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
description: "Countries Completed"
|
description: "Countries Completed"
|
||||||
})),
|
})),
|
||||||
createAdditiveModifier(() => ({
|
createAdditiveModifier(() => ({
|
||||||
addend: 1,
|
addend: -1,
|
||||||
description: "5 Countries Completed",
|
description: "5 Countries Completed",
|
||||||
enabled: milestone5.earned
|
enabled: milestone5.earned
|
||||||
}))
|
}))
|
||||||
|
@ -849,7 +849,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
{render(modifiersModal)}
|
{render(modifiersModal)}
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<MainDisplay resource={citiesCompleted} color={color} />
|
<MainDisplay resource={citiesCompleted} color={color} />
|
||||||
{renderRow(getNewCity, boost, removeRedundantRoute)}
|
{renderRow(boost, removeRedundantRoute)}
|
||||||
{render(city)}
|
{render(city)}
|
||||||
{render(checkRouteProgressBar)}
|
{render(checkRouteProgressBar)}
|
||||||
<Spacer />
|
<Spacer />
|
||||||
|
|
|
@ -3,20 +3,20 @@
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
import Spacer from "components/layout/Spacer.vue";
|
import Spacer from "components/layout/Spacer.vue";
|
||||||
import { createCollapsibleMilestones} from "data/common";
|
import { createCollapsibleMilestones } from "data/common";
|
||||||
import { main } from "data/projEntry";
|
import { main } from "data/projEntry";
|
||||||
import { createBar } from "features/bars/bar";
|
import { createBar } from "features/bars/bar";
|
||||||
import { jsx, showIf } from "features/feature";
|
import { jsx, showIf } from "features/feature";
|
||||||
import { createMilestone } from "features/milestones/milestone";
|
import { createMilestone } from "features/milestones/milestone";
|
||||||
import { BaseLayer, createLayer } from "game/layers";
|
import { BaseLayer, createLayer } from "game/layers";
|
||||||
import Decimal, { DecimalSource, format, formatWhole } from "util/bignum";
|
import Decimal, { DecimalSource, format, formatWhole } from "util/bignum";
|
||||||
import { Direction} from "util/common";
|
import { Direction } from "util/common";
|
||||||
import { render } from "util/vue";
|
import { render } from "util/vue";
|
||||||
import { computed, watchEffect } from "vue";
|
import { computed, watchEffect } from "vue";
|
||||||
import management from "./management";
|
import management from "./management";
|
||||||
import trees from "./trees";
|
import trees from "./trees";
|
||||||
import metal from "./metal";
|
import metal from "./metal";
|
||||||
import plastic from "./plastic"
|
import plastic from "./plastic";
|
||||||
import { createBuyable, GenericBuyable } from "features/buyable";
|
import { createBuyable, GenericBuyable } from "features/buyable";
|
||||||
import { Resource } from "features/resources/resource";
|
import { Resource } from "features/resources/resource";
|
||||||
import { isArray } from "@vue/shared";
|
import { isArray } from "@vue/shared";
|
||||||
|
@ -39,9 +39,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const sleighProgress = computed(() => sleigh.amount)
|
const sleighProgress = computed(() => sleigh.amount);
|
||||||
const sleighCost = computed(() => {
|
const sleighCost = computed(() => {
|
||||||
let v = sleighProgress.value.value;
|
const v = sleighProgress.value.value;
|
||||||
return {
|
return {
|
||||||
wood: Decimal.mul(1e97, Decimal.pow(1.2, v)),
|
wood: Decimal.mul(1e97, Decimal.pow(1.2, v)),
|
||||||
metal: Decimal.mul(1e67, Decimal.pow(1.1, v)),
|
metal: Decimal.mul(1e67, Decimal.pow(1.1, v)),
|
||||||
|
@ -157,7 +157,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
direction: Direction.Right,
|
direction: Direction.Right,
|
||||||
width: 600,
|
width: 600,
|
||||||
height: 25,
|
height: 25,
|
||||||
fillStyle: `backgroundColor: ${colorDark}`,
|
fillStyle: `animation: 15s sleigh-bar linear infinite`,
|
||||||
progress: () =>
|
progress: () =>
|
||||||
main.day.value === day || main.currentlyMastering.value?.name === name
|
main.day.value === day || main.currentlyMastering.value?.name === name
|
||||||
? Decimal.div(sleighProgress.value.value, 100)
|
? Decimal.div(sleighProgress.value.value, 100)
|
||||||
|
@ -213,12 +213,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
)),
|
)),
|
||||||
minimizedDisplay: jsx(() => (
|
minimizedDisplay: jsx(() => (
|
||||||
<div>
|
<div>
|
||||||
{name}{" "}
|
{name} <span class="desc">{formatWhole(sleighProgress.value.value)}% sleigh</span>
|
||||||
<span class="desc">
|
|
||||||
{formatWhole(sleighProgress.value.value)}% sleigh
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
)),
|
))
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,19 @@
|
||||||
repeating-linear-gradient(-45deg, brown 0 10px, saddlebrown 10px 20px);
|
repeating-linear-gradient(-45deg, brown 0 10px, saddlebrown 10px 20px);
|
||||||
}
|
}
|
||||||
to {
|
to {
|
||||||
background: 28px 0px / 28px 28px repeat
|
background: 114px 0px / 28px 28px repeat
|
||||||
repeating-linear-gradient(-45deg, brown 0 10px, saddlebrown 10px 20px);
|
repeating-linear-gradient(-45deg, brown 0 10px, saddlebrown 10px 20px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes sleigh-bar {
|
||||||
|
from {
|
||||||
|
background: 0 0 / 28px 28px repeat
|
||||||
|
repeating-linear-gradient(-45deg, #D71830 0 10px, #A0A020 10px 20px);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
background: 114px 0px / 28px 28px repeat
|
||||||
|
repeating-linear-gradient(-45deg, #D71830 0 10px, #A0A020 10px 20px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue