mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-21 16:13:57 +00:00
do something
This commit is contained in:
parent
44a232f2aa
commit
3c6d86bd78
2 changed files with 15 additions and 1 deletions
|
@ -123,6 +123,11 @@ const factory = createLayer(id, () => {
|
|||
createAdditiveModifier(() => ({
|
||||
addend: () => Decimal.add(1, coal.coal.value).log10(),
|
||||
description: "Coal Energy Production"
|
||||
})),
|
||||
createMultiplicativeModifier(()=>({
|
||||
multiplier: 1.2,
|
||||
description: "2000 toys",
|
||||
enabled: toys.milestones.milestone6.earned
|
||||
}))
|
||||
]);
|
||||
const computedEnergy = computed(() => energy.apply(0));
|
||||
|
|
|
@ -268,7 +268,16 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
shouldEarn: () => Decimal.gte(toySum.value, 1000),
|
||||
visibility: () => showIf(milestone4.earned.value)
|
||||
}));
|
||||
const milestones = { milestone1, milestone2, milestone3, milestone4, milestone5 };
|
||||
|
||||
const milestone6 = createMilestone(() => ({
|
||||
display: {
|
||||
requirement: "2000 toys",
|
||||
effectDisplay: "Running out of energy? Let's increase the limit! Multiply energy capacity by 1.2"
|
||||
},
|
||||
shouldEarn: () => Decimal.gte(toySum.value, 2000),
|
||||
visibility: () => showIf(milestone5.earned.value)
|
||||
}));
|
||||
const milestones = { milestone1, milestone2, milestone3, milestone4, milestone5, milestone6 };
|
||||
const { collapseMilestones, display: milestonesDisplay } =
|
||||
createCollapsibleMilestones(milestones);
|
||||
|
||||
|
|
Loading…
Reference in a new issue