Merge remote-tracking branch 'origin/main' into days-15-16

This commit is contained in:
thepaperpilot 2022-12-18 14:58:02 -06:00
commit 68ff7bbeb4
13 changed files with 47 additions and 41 deletions

View file

@ -237,3 +237,9 @@ export default defineComponent({
text-shadow: 0 0 7px var(--foreground); text-shadow: 0 0 7px var(--foreground);
} }
</style> </style>
<style>
.layer-tab.minimized > * > .desc {
color: var(--accent1);
font-size: 30px;
}
</style>

View file

@ -653,7 +653,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
)), )),
minimizedDisplay: jsx(() => ( minimizedDisplay: jsx(() => (
<div> <div>
{name} - {format(boxes.value)} {boxes.displayName} {name}{" "}
<span class="desc">{format(boxes.value)} {boxes.displayName}</span>
</div> </div>
)), )),
mastery, mastery,

View file

@ -658,7 +658,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
)), )),
minimizedDisplay: jsx(() => ( minimizedDisplay: jsx(() => (
<div> <div>
{name} - {format(cloth.value)} {cloth.displayName} {name}{" "}
<span class="desc">{format(cloth.value)} {cloth.displayName}</span>
</div> </div>
)), )),
mastery, mastery,

View file

@ -132,7 +132,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
}, },
style: { style: {
color: colorText, color: colorText,
width: "160px" width: "160px",
flexGrow: 1
} }
})) as ElfBuyable & { resource: Resource }; })) as ElfBuyable & { resource: Resource };
@ -196,7 +197,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
}, },
style: { style: {
color: colorText, color: colorText,
width: "160px" width: "160px",
flexGrow: 1
}, },
visibility: () => showIf(unlockBonfire.bought.value) visibility: () => showIf(unlockBonfire.bought.value)
})) as ElfBuyable & { resource: Resource }; })) as ElfBuyable & { resource: Resource };
@ -262,7 +264,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
}, },
style: { style: {
color: colorText, color: colorText,
width: "160px" width: "160px",
flexGrow: 1
}, },
visibility: () => showIf(unlockKiln.bought.value) visibility: () => showIf(unlockKiln.bought.value)
})) as ElfBuyable & { resource: Resource }; })) as ElfBuyable & { resource: Resource };
@ -334,7 +337,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
}, },
style: { style: {
color: colorText, color: colorText,
width: "160px" width: "160px",
flexGrow: 1
}, },
visibility: () => showIf(metal.coalDrill.bought.value) visibility: () => showIf(metal.coalDrill.bought.value)
})) as ElfBuyable & { resource: Resource }; })) as ElfBuyable & { resource: Resource };
@ -1174,7 +1178,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
)), )),
minimizedDisplay: jsx(() => ( minimizedDisplay: jsx(() => (
<div> <div>
{name} - {format(coal.value)} {coal.displayName} {name}{" "}
<span class="desc">{format(coal.value)} {coal.displayName}</span>
</div> </div>
)), )),
mastery, mastery,

View file

@ -96,7 +96,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
modifiers.push( modifiers.push(
createMultiplicativeModifier(() => ({ createMultiplicativeModifier(() => ({
multiplier() { multiplier() {
return Decimal.add(dyes.red.amount.value, 1).log10().pow(0.75); return Decimal.add(dyes.red.amount.value, 1).log10().add(1).pow(0.75);
}, },
description: "Dye Synergy I" description: "Dye Synergy I"
})) }))

View file

@ -303,7 +303,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
)), )),
minimizedDisplay: jsx(() => ( minimizedDisplay: jsx(() => (
<div> <div>
{name} - {format(letters.value)} {letters.displayName} {name}{" "}
<span class="desc">{format(letters.value)} {letters.displayName}</span>
</div> </div>
)), )),
mastery, mastery,

View file

@ -1228,16 +1228,6 @@ const layer = createLayer(id, () => {
multiplier: 2, multiplier: 2,
description: "Focus Upgrade 1", description: "Focus Upgrade 1",
enabled: focusUpgrade1.bought enabled: focusUpgrade1.bought
})),
createAdditiveModifier(() => ({
addend() {
return Decimal.add(dyes.dyes.orange.amount.value, dyes.dyes.purple.amount.value)
.add(dyes.dyes.green.amount.value)
.add(1)
.cbrt();
},
description: "Colorful Focus",
enabled: oil.row3Upgrades[2].bought
})) }))
]) as WithRequired<Modifier, "revert" | "description">; ]) as WithRequired<Modifier, "revert" | "description">;
const maximumElvesModifier = createSequentialModifier(() => [ const maximumElvesModifier = createSequentialModifier(() => [

View file

@ -203,9 +203,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
createMultiplicativeModifier(() => ({ createMultiplicativeModifier(() => ({
multiplier: 3, multiplier: 3,
description: "Twinkle Level 3", description: "Twinkle Level 3",
enabled: () => enabled: management.elfTraining.metalElfTraining.milestones[2].earned
management.elfTraining.metalElfTraining.milestones[2].earned.value &&
!main.isMastery.value
})), })),
createMultiplicativeModifier(() => ({ createMultiplicativeModifier(() => ({
multiplier: () => Decimal.add(industrialCrucible.amount.value, 1).sqrt(), multiplier: () => Decimal.add(industrialCrucible.amount.value, 1).sqrt(),
@ -770,7 +768,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
)), )),
minimizedDisplay: jsx(() => ( minimizedDisplay: jsx(() => (
<div> <div>
{name} - {format(metal.value)} {metal.displayName} {name}{" "}
<span class="desc">{format(metal.value)} {metal.displayName}</span>
</div> </div>
)), )),
mastery, mastery,

View file

@ -1352,10 +1352,10 @@ const layer = createLayer(id, function (this: BaseLayer) {
}), }),
minimizedDisplay: jsx(() => ( minimizedDisplay: jsx(() => (
<div> <div>
{name} - {format(oil.value)} {oil.displayName} {name}{" "}
<span class="desc">{format(oil.value)} {oil.displayName}</span>
</div> </div>
)), )),
mastery, mastery,
mastered mastered
}; };

View file

@ -533,7 +533,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
)), )),
minimizedDisplay: jsx(() => ( minimizedDisplay: jsx(() => (
<div> <div>
{name} - {format(paper.value)} {paper.displayName} {name}{" "}
<span class="desc">{format(paper.value)} {paper.displayName}</span>
</div> </div>
)), )),
mastery, mastery,

View file

@ -280,9 +280,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
createMultiplicativeModifier(() => ({ createMultiplicativeModifier(() => ({
multiplier: () => Decimal.add(oil.buildExtractor.amount.value, 1).pow(1.25), multiplier: () => Decimal.add(oil.buildExtractor.amount.value, 1).pow(1.25),
description: "Snowball Level 4", description: "Snowball Level 4",
enabled: () => enabled: management.elfTraining.kilnElfTraining.milestones[3].earned
management.elfTraining.kilnElfTraining.milestones[3].earned.value &&
!main.isMastery.value
})), })),
createMultiplicativeModifier(() => ({ createMultiplicativeModifier(() => ({
multiplier: () => Decimal.add(dyes.secondaryDyeSum.value, 1).cbrt(), multiplier: () => Decimal.add(dyes.secondaryDyeSum.value, 1).cbrt(),
@ -385,7 +383,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
)), )),
minimizedDisplay: jsx(() => ( minimizedDisplay: jsx(() => (
<div> <div>
{name} - {format(plastic.value)} {plastic.displayName} {name}{" "}
<span class="desc">{format(plastic.value)} {plastic.displayName}</span>
</div> </div>
)), )),
mastery, mastery,

View file

@ -778,6 +778,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
Decimal.times(computedAutoPlantingAmount.value, diff) Decimal.times(computedAutoPlantingAmount.value, diff)
); );
saplings.value = Decimal.sub(saplings.value, amountPlanted); saplings.value = Decimal.sub(saplings.value, amountPlanted);
if(Decimal.gte(saplings.value, computedTotalTrees.value)) saplings.value = computedTotalTrees.value;
}); });
const netSaplingGain = computed(() => const netSaplingGain = computed(() =>
@ -917,7 +918,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
)), )),
minimizedDisplay: jsx(() => ( minimizedDisplay: jsx(() => (
<div> <div>
{name} - {format(logs.value)} {logs.displayName} {name}{" "}
<span class="desc">{format(logs.value)} {logs.displayName}</span>
</div> </div>
)), )),
mastery, mastery,

View file

@ -393,7 +393,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
)), )),
minimizedDisplay: jsx(() => ( minimizedDisplay: jsx(() => (
<div> <div>
{name} - {format(foundationProgress.value)}% {foundationProgress.displayName} {name}{" "}
<span class="desc">{formatWhole(foundationProgress.value)}% {foundationProgress.displayName}</span>
</div> </div>
)), )),
mastery, mastery,