mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 08:31:35 +00:00
Never touching this again
This commit is contained in:
parent
c808cad0d1
commit
c89f37a867
2 changed files with 22 additions and 17 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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(() => (
|
||||
|
|
Loading…
Reference in a new issue