mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 17:31:54 +00:00
add milestone
This commit is contained in:
parent
ab6e04de4b
commit
331d0e7552
2 changed files with 10 additions and 2 deletions
|
@ -377,7 +377,7 @@ const factory = createLayer(id, () => {
|
||||||
},
|
},
|
||||||
outputs: {
|
outputs: {
|
||||||
wheel: {
|
wheel: {
|
||||||
amount: 1
|
amount: toys.milestones.milestone5.earned ? 2 : 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -260,7 +260,15 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
shouldEarn: () => Decimal.gte(toySum.value, 350),
|
shouldEarn: () => Decimal.gte(toySum.value, 350),
|
||||||
visibility: () => showIf(milestone3.earned.value)
|
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 } =
|
const { collapseMilestones, display: milestonesDisplay } =
|
||||||
createCollapsibleMilestones(milestones);
|
createCollapsibleMilestones(milestones);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue