fix 200% milestone applying to the wrong thing

This commit is contained in:
unsoftcapped3 2022-12-13 10:53:51 -08:00 committed by GitHub
parent bc69ffecfb
commit 6b3b851791
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -293,9 +293,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
})),
createAdditiveModifier(() => ({
addend: () =>
workshop.milestones.extraExpansionMilestone1.earned.value
? Decimal.pow(1.02, workshop.foundationProgress.value)
: Decimal.div(workshop.foundationProgress.value, 5).floor(),
Decimal.div(workshop.foundationProgress.value, 5).floor(),
description: "10% Foundation Completed",
enabled: workshop.milestones.autoCutMilestone1.earned
})),
@ -448,7 +446,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
enabled: researchUpgrade2.bought
})),
createMultiplicativeModifier(() => ({
multiplier: () => Decimal.div(workshop.foundationProgress.value, 20).add(1),
multiplier: () => workshop.milestones.extraExpansionMilestone1.earned.value
? Decimal.pow(1.02, workshop.foundationProgress.value) : Decimal.div(workshop.foundationProgress.value, 20).add(1),
description: "1% Foundation Completed",
enabled: workshop.milestones.logGainMilestone1.earned
})),