From 3c6d86bd7888ca44d11e14c16ee8276bb9cc4cbc Mon Sep 17 00:00:00 2001 From: unsoftcapped3 <75136164+unsoftcapped3@users.noreply.github.com> Date: Thu, 22 Dec 2022 18:28:12 +0000 Subject: [PATCH] do something --- src/data/layers/factory.tsx | 5 +++++ src/data/layers/toys.tsx | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/data/layers/factory.tsx b/src/data/layers/factory.tsx index c1cbede..cf2260a 100644 --- a/src/data/layers/factory.tsx +++ b/src/data/layers/factory.tsx @@ -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)); diff --git a/src/data/layers/toys.tsx b/src/data/layers/toys.tsx index 2e1a1c3..05cde13 100644 --- a/src/data/layers/toys.tsx +++ b/src/data/layers/toys.tsx @@ -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);