Fix some refs being unwrapped

This commit is contained in:
thepaperpilot 2022-12-13 23:25:34 -06:00
parent cd0a2a82fd
commit 7942f8f22c
2 changed files with 7 additions and 3 deletions

View file

@ -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<Modifier, "revert" | "description">;
const maximumElvesModifier = createSequentialModifier(() => [

View file

@ -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));