do something

This commit is contained in:
unsoftcapped3 2022-12-22 18:28:12 +00:00
parent 44a232f2aa
commit 3c6d86bd78
2 changed files with 15 additions and 1 deletions

View file

@ -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));

View file

@ -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);