From 55ecd21d55de88d5dae2d65fa55ada9cea4bc124 Mon Sep 17 00:00:00 2001 From: unsoftcapped3 <75136164+unsoftcapped3@users.noreply.github.com> Date: Tue, 13 Dec 2022 04:17:35 +0000 Subject: [PATCH] balance up to all milestone 1s --- src/data/layers/management.tsx | 32 ++++++++++++++++++-------------- src/data/layers/trees.tsx | 3 ++- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/src/data/layers/management.tsx b/src/data/layers/management.tsx index 61c4e34..9b2359e 100644 --- a/src/data/layers/management.tsx +++ b/src/data/layers/management.tsx @@ -120,16 +120,19 @@ const layer = createLayer(id, () => { ...modifiers: Modifier[] ) { const exp = persistent(0); - const costMulti = ["Holly","Ivy","Hope","Jack","Mary","Noel","Joy","Faith","Snowball","Star","Bell","Gingersnap"].indexOf(elf.name)+1 - const expRequiredForNextLevel = computed(() => Decimal.pow(10, level.value).mul(2022).mul(costMulti)); + var costMulti = ["Holly","Ivy","Hope","Jack","Mary","Noel","Joy","Faith","Snowball","Star","Bell","Gingersnap"].indexOf(elf.name)+1 + if(elf.name == "Star" || elf.name == "Bell"){ + costMulti /= 3 + } + const expRequiredForNextLevel = computed(() => Decimal.pow(10, level.value).mul(4000).mul(costMulti)); const level = computed(() => Decimal.min( - Decimal.mul(9, exp.value).div(2022).div(costMulti).add(1).log10().floor(), + Decimal.mul(9, exp.value).div(4000).div(costMulti).add(1).log10().floor(), schools.amount.value ).toNumber() ); const expToNextLevel = computed(() => - Decimal.sub(exp.value, Decimal.pow(10, level.value).sub(1).div(9).mul(2022)) + Decimal.sub(exp.value, Decimal.pow(10, level.value).sub(1).div(9).mul(4000)) ); const bar = createBar(() => ({ direction: Direction.Right, @@ -224,7 +227,7 @@ const layer = createLayer(id, () => { requirement: "Holly Level 1", effectDisplay: jsx(() => ( <> - Multiply log gain by 3 + Multiply log gain by 9 Cutter amount. )) @@ -244,7 +247,7 @@ const layer = createLayer(id, () => { requirement: "Holly Level 3", effectDisplay: jsx(() => ( <> - Multiply all cloth actions' effectiveness by 3 + Multiply all cloth actions' effectiveness by 9 Cutter amount. )) @@ -364,7 +367,7 @@ const layer = createLayer(id, () => { createMilestone(() => ({ display: { requirement: "Jack Level 1", - effectDisplay: "Heated cutters are less expensive." + effectDisplay: '"Fahrenheit 451" affects "Heated Cutters" twice.' }, shouldEarn: () => heatedCutterElfTraining.level.value >= 1 })), @@ -1023,17 +1026,18 @@ const layer = createLayer(id, () => { resource: trees.logs, cost: 1e50 })); - const upgrades = { focusUpgrade1, focusUpgrade2, focusUpgrade3 }; + const upgrades = [ focusUpgrade1, focusUpgrade2, focusUpgrade3 ]; // ------------------------------------------------------------------------------- Schools const schoolCost = computed(() => { const schoolFactor = Decimal.pow(10, schools.amount.value); - const woodFactor = Decimal.pow(1e6, schools.amount.value) + const woodFactor = Decimal.pow(2e4, schools.amount.value) + const coalFactor = Decimal.pow(2000, schools.amount.value) return { wood: woodFactor.mul(1e21), - coal: schoolFactor.mul(1e32), - paper: schoolFactor.mul(1e18), - boxes: schoolFactor.mul(1e13), + coal: coalFactor.mul(1e32), + paper: coalFactor.mul(1e18), + boxes: woodFactor.mul(1e13), metalIngots: schoolFactor.mul(1e12), cloth: schoolFactor.mul(1e4), plastic: schoolFactor.mul(1e6), @@ -1093,7 +1097,7 @@ const layer = createLayer(id, () => { })); const classroomCost = computed(() => { - const classroomFactor = Decimal.add(schools.amount.value, 1).pow(1.5); + const classroomFactor = Decimal.add(classrooms.amount.value, 1).pow(1.5); return { wood: classroomFactor.mul(1e21), paper: classroomFactor.mul(1e18), @@ -1295,7 +1299,7 @@ const layer = createLayer(id, () => { {render(modifiersModal)} {render(dayProgress)}
- {renderCol(schools, classrooms)} {renderGrid([teaching, classroomUpgrade])} + {renderCol(schools, classrooms)} {renderGrid([teaching, classroomUpgrade])} {renderGrid(upgrades)} {Decimal.gt(schools.amount.value, 0) ? ( <>
diff --git a/src/data/layers/trees.tsx b/src/data/layers/trees.tsx index 5e67dae..0bd422b 100644 --- a/src/data/layers/trees.tsx +++ b/src/data/layers/trees.tsx @@ -241,6 +241,7 @@ const layer = createLayer(id, function (this: BaseLayer) { let v = this.amount.value; if (Decimal.gte(v, 100)) v = Decimal.pow(v, 2).div(100); if (Decimal.gte(v, 1e5)) v = Decimal.pow(v, 2).div(1e5); + if (Decimal.gte(v, 1e15)) v = Decimal.pow(v, 10).div(1e135); v = Decimal.pow(0.95, paper.books.expandersBook.amount.value).times(v); return Decimal.pow(Decimal.add(v, 1), 1.5).times(500); }, @@ -483,7 +484,7 @@ const layer = createLayer(id, function (this: BaseLayer) { enabled: dyes.upgrades.blueDyeUpg.bought })), createMultiplicativeModifier(() => ({ - multiplier: computed(() => Decimal.add(computedAutoCuttingAmount.value, 1).root(3)), + multiplier: computed(() => Decimal.add(computedAutoCuttingAmount.value, 1).root(9)), description: "Holly Level 1", enabled: management.elfTraining.cutterElfTraining.milestones[0].earned })),