add milestone

This commit is contained in:
unsoftcapped3 2022-12-22 18:19:04 +00:00
parent ab6e04de4b
commit 331d0e7552
2 changed files with 10 additions and 2 deletions

View file

@ -377,7 +377,7 @@ const factory = createLayer(id, () => {
},
outputs: {
wheel: {
amount: 1
amount: toys.milestones.milestone5.earned ? 2 : 1
}
}
},

View file

@ -260,7 +260,15 @@ const layer = createLayer(id, function (this: BaseLayer) {
shouldEarn: () => Decimal.gte(toySum.value, 350),
visibility: () => showIf(milestone3.earned.value)
}));
const milestones = { milestone1, milestone2, milestone3, milestone4 };
const milestone5 = createMilestone(() => ({
display: {
requirement: "1000 toys",
effectDisplay: "The wheel crafter now makes 2 wheels instead of 1! Now you should be able to fit everything in the factory."
},
shouldEarn: () => Decimal.gte(toySum.value, 1000),
visibility: () => showIf(milestone4.earned.value)
}));
const milestones = { milestone1, milestone2, milestone3, milestone4, milestone5 };
const { collapseMilestones, display: milestonesDisplay } =
createCollapsibleMilestones(milestones);