From 7942f8f22c995b7f2cf9c29b1b4996e6c5e07d5e Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Tue, 13 Dec 2022 23:25:34 -0600 Subject: [PATCH] Fix some refs being unwrapped --- src/data/layers/management.tsx | 2 +- src/data/layers/metal.tsx | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/data/layers/management.tsx b/src/data/layers/management.tsx index 02be305..0ba59e2 100644 --- a/src/data/layers/management.tsx +++ b/src/data/layers/management.tsx @@ -1159,7 +1159,7 @@ const layer = createLayer(id, () => { .cbrt(); }, description: "Colorful Focus", - enabled: oil.row3Upgrades[2].bought.value + enabled: oil.row3Upgrades[2].bought })) ]) as WithRequired; const maximumElvesModifier = createSequentialModifier(() => [ diff --git a/src/data/layers/metal.tsx b/src/data/layers/metal.tsx index 4b31d22..7ac0eb7 100644 --- a/src/data/layers/metal.tsx +++ b/src/data/layers/metal.tsx @@ -161,9 +161,13 @@ const layer = createLayer(id, function (this: BaseLayer) { enabled: management.elfTraining.metalElfTraining.milestones[1].earned })), createMultiplicativeModifier(() => ({ - multiplier: () => Decimal.add(dyes.dyes.red.amount, dyes.dyes.blue.amount).add(dyes.dyes.yellow.amount).add(1).log10(), + multiplier: () => + Decimal.add(dyes.dyes.red.amount, dyes.dyes.blue.amount) + .add(dyes.dyes.yellow.amount) + .add(1) + .log10(), description: "The Ultimate Metal Dye", - enabled: oil.row3Upgrades[4].bought.value + enabled: oil.row3Upgrades[4].bought })) ]); const computedAutoSmeltSpeed = computed(() => autoSmeltSpeed.apply(0));