implement 1400% milestone

This commit is contained in:
unsoftcapped3 2022-12-22 23:51:08 +00:00
parent 34862f504c
commit 1b151cce12
3 changed files with 19 additions and 2 deletions

View file

@ -83,6 +83,7 @@ import "./styles/factory.css";
import Toy from "./Toy.vue"; import Toy from "./Toy.vue";
import toys from "./toys"; import toys from "./toys";
import trees from "./trees"; import trees from "./trees";
import workshop from "./workshop";
const id = "factory"; const id = "factory";
@ -149,6 +150,11 @@ const factory = createLayer(id, () => {
addend: () => Decimal.add(1, coal.coal.value).log10(), addend: () => Decimal.add(1, coal.coal.value).log10(),
description: "Coal Energy Production" description: "Coal Energy Production"
})), })),
createMultiplicativeModifier(() => ({
multiplier: Decimal.add(1, coal.coal.value).log10().div(100),
description: "1400% workshop",
enabled: workshop.milestones.extraExpansionMilestone7.earned
})),
createAdditiveModifier(() => ({ createAdditiveModifier(() => ({
addend: () => Decimal.times(oilFuel.amount.value, 10), addend: () => Decimal.times(oilFuel.amount.value, 10),
description: "Oil Fuel", description: "Oil Fuel",

View file

@ -547,7 +547,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
enabled: toys.row1Upgrades[0].bought enabled: toys.row1Upgrades[0].bought
})), })),
createMultiplicativeModifier(() => ({ createMultiplicativeModifier(() => ({
multiplier: () => Decimal.add(toys.clothes.value, 1), multiplier: () => Decimal.add(toys.clothes.value, 1).pow(0.75),
description: "3000 Toys", description: "3000 Toys",
enabled: toys.milestones.milestone7.earned enabled: toys.milestones.milestone7.earned
})), })),

View file

@ -299,6 +299,16 @@ const layer = createLayer(id, function (this: BaseLayer) {
showIf(extraExpansionMilestone5.earned.value && toys.row1Upgrades[2].bought.value), showIf(extraExpansionMilestone5.earned.value && toys.row1Upgrades[2].bought.value),
showPopups: shouldShowPopups showPopups: shouldShowPopups
})); }));
const extraExpansionMilestone7 = createMilestone(() => ({
display: {
requirement: "1400% Foundation Completed",
effectDisplay: "Coal has a greater effect on energy gain"
},
shouldEarn: () => Decimal.gte(foundationProgress.value, 1400),
visibility: () =>
showIf(extraExpansionMilestone6.earned.value && toys.row1Upgrades[2].bought.value),
showPopups: shouldShowPopups
}));
const milestones = { const milestones = {
logGainMilestone1, logGainMilestone1,
autoCutMilestone1, autoCutMilestone1,
@ -313,7 +323,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
extraExpansionMilestone3, extraExpansionMilestone3,
extraExpansionMilestone4, extraExpansionMilestone4,
extraExpansionMilestone5, extraExpansionMilestone5,
extraExpansionMilestone6 extraExpansionMilestone6,
extraExpansionMilestone7
}; };
const { collapseMilestones, display: milestonesDisplay } = const { collapseMilestones, display: milestonesDisplay } =
createCollapsibleMilestones(milestones); createCollapsibleMilestones(milestones);