From 327dac3129bddcd29e88830ef4a9593750369223 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 12 Dec 2022 23:29:58 -0600 Subject: [PATCH] Re-did joy's lv 1 milestone --- src/data/layers/coal.tsx | 33 ++++++++++++++++++++------------- src/data/layers/management.tsx | 2 +- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/src/data/layers/coal.tsx b/src/data/layers/coal.tsx index f7e90fb..ea82998 100644 --- a/src/data/layers/coal.tsx +++ b/src/data/layers/coal.tsx @@ -82,13 +82,7 @@ const layer = createLayer(id, function (this: BaseLayer) { const activeFires = persistent(0); const fireLogs = computed(() => Decimal.times(activeFires.value, 1000)); - const fireCoal = computed(() => { - let gain = Decimal.times(activeFires.value, 0.1); - if (management.elfTraining.smallfireElfTraining.milestones[0].earned.value) { - gain = gain.times(5); - } - return gain; - }); + const fireCoal = computed(() => Decimal.times(activeFires.value, 0.1)); const fireAsh = computed(() => { let gain = Decimal.times(activeFires.value, 50); if (management.elfTraining.smallfireElfTraining.milestones[0].earned.value) { @@ -263,10 +257,11 @@ const layer = createLayer(id, function (this: BaseLayer) { Decimal.times( Decimal.pow(activeDrills.value, oil.row2Upgrades[1].bought.value ? 2 : 1), 5e7 - ).times(metal.efficientDrill.bought.value ? 2 : 1) - .times(management.elfTraining.smallfireElfTraining.milestones[2].earned.value ? 2 : 1) - .times(management.elfTraining.bonfireElfTraining.milestones[2].earned.value ? 2 : 1) - .times(management.elfTraining.kilnElfTraining.milestones[2].earned.value ? 2 : 1) + ) + .times(metal.efficientDrill.bought.value ? 2 : 1) + .times(management.elfTraining.smallfireElfTraining.milestones[2].earned.value ? 2 : 1) + .times(management.elfTraining.bonfireElfTraining.milestones[2].earned.value ? 2 : 1) + .times(management.elfTraining.kilnElfTraining.milestones[2].earned.value ? 2 : 1) ); const buildDrill = createBuyable(() => ({ resource: metal.metal, @@ -596,7 +591,13 @@ const layer = createLayer(id, function (this: BaseLayer) { enabled: boxes.upgrades.coalUpgrade.bought })), createMultiplicativeModifier(() => ({ - multiplier: () => Decimal.div(buildFire.amount.value, 10000).add(1), + multiplier: () => { + let v = buildFire.amount.value; + if (management.elfTraining.smallfireElfTraining.milestones[0].earned.value) { + v = Decimal.div(buildBonfire.amount.value, 10).add(v); + } + return Decimal.div(v, 10000).add(1); + }, description: "Small Fires Synergy", enabled: elves.elves.smallFireElf.bought })), @@ -694,7 +695,13 @@ const layer = createLayer(id, function (this: BaseLayer) { enabled: boxes.upgrades.ashUpgrade.bought })), createMultiplicativeModifier(() => ({ - multiplier: () => Decimal.div(buildFire.amount.value, 1000).add(1), + multiplier: () => { + let v = buildFire.amount.value; + if (management.elfTraining.smallfireElfTraining.milestones[0].earned.value) { + v = Decimal.div(buildBonfire.amount.value, 100).add(v); + } + return Decimal.div(v, 1000).add(1); + }, description: "Small Fires Synergy", enabled: elves.elves.smallFireElf.bought })), diff --git a/src/data/layers/management.tsx b/src/data/layers/management.tsx index fa5f29a..ff6dc6a 100644 --- a/src/data/layers/management.tsx +++ b/src/data/layers/management.tsx @@ -535,7 +535,7 @@ const layer = createLayer(id, () => { createMilestone(() => ({ display: { requirement: "Joy Level 1", - effectDisplay: "Multiply small fire efficiency by 5." + effectDisplay: "Small Fire synergy counts bonfires at reduced rate." }, shouldEarn: () => smallfireElfTraining.level.value >= 1 })),