Never touching this again

This commit is contained in:
Chunkybanana 2022-12-15 02:33:24 +00:00
parent c808cad0d1
commit c89f37a867
2 changed files with 22 additions and 17 deletions

View file

@ -877,7 +877,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
"Carol will automatically purchase all dyes you can afford, without actually spending any resources.",
buyable: Object.values(dyes.dyes).map(dye => dye.buyable),
cooldownModifier: dyeCooldown, // Note: Buy max will be unlocked at this point
visibility: () => showIf(wrappingPaper.milestones.unlockDyeElf.earned.value)
visibility: () => showIf(wrappingPaper.milestones.unlockDyeElf.earned.value),
buyMax: true
});
const wrappingPaperElves = [dyeElf];
const elves = {

View file

@ -41,10 +41,26 @@ const layer = createLayer(id, function (this: BaseLayer) {
const foundationProgress = createResource<DecimalSource>(0, "foundation progress");
const costDecrease = createSequentialModifier(() => [
createMultiplicativeModifier(() => ({
multiplier: computed(() => Decimal.recip(wrappingPaper.boosts.beach1.value)),
description: "Beach Wrapping Paper",
enabled: computed(() => Decimal.gt(wrappingPaper.boosts.beach1.value, 1))
})),
createExponentialModifier(() => ({
exponent: 0.99,
description: "Holly Level 5",
enabled: management.elfTraining.cutterElfTraining.milestones[4].earned
}))
])
const addScaling = (value: DecimalSource) => computed(() => costDecrease.apply(value));
const foundationConversion = createIndependentConversion(() => ({
scaling: addSoftcap(
addSoftcap(createPolynomialScaling(250, 1.5), 5387, 1 / 1e10),
1e20,
addSoftcap(createPolynomialScaling(
addScaling(250), 1.5), addScaling(5387), 1 / 1e10),
addScaling(1e20),
3e8
),
baseResource: trees.logs,
@ -53,20 +69,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
// buyMax: management.elfTraining.expandersElfTraining.milestones[2].earned,
spend(gain, spent) {
trees.logs.value = Decimal.sub(trees.logs.value, spent);
},
costModifier: createSequentialModifier(() => [
createMultiplicativeModifier(() => ({
multiplier: computed(() => wrappingPaper.boosts.beach1.value),
description: "Beach Wrapping Paper",
enabled: computed(() => Decimal.gt(wrappingPaper.boosts.beach1.value, 1))
})),
createExponentialModifier(() => ({
exponent: 1 / 0.99,
description: "Holly Level 5",
enabled: management.elfTraining.cutterElfTraining.milestones[4].earned
}))
])
}));
}
}));
const buildFoundation = createClickable(() => ({
display: jsx(() => (