From 7fbeaa8212d87f85d3e7ac271f5e6e2927740ee3 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 18 Dec 2022 23:33:38 -0600 Subject: [PATCH] Fix synergy I and II not taking effect until refresh --- src/data/layers/dyes.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/data/layers/dyes.tsx b/src/data/layers/dyes.tsx index fdb41a2..31e460f 100644 --- a/src/data/layers/dyes.tsx +++ b/src/data/layers/dyes.tsx @@ -92,23 +92,25 @@ const layer = createLayer(id, function (this: BaseLayer) { description: `${options.name} Chambers` })) ]; - if (options.color === "yellow" && oil.row3Upgrades[0].bought.value) { + if (options.color === "yellow") { modifiers.push( createMultiplicativeModifier(() => ({ multiplier() { return Decimal.add(dyes.red.amount.value, 1).log10().add(1).pow(0.75); }, - description: "Dye Synergy I" + description: "Dye Synergy I", + enabled: oil.row3Upgrades[0].bought })) ); } - if (options.color === "red" && oil.row3Upgrades[3].bought.value) { + if (options.color === "red") { modifiers.push( createMultiplicativeModifier(() => ({ multiplier() { return Decimal.add(dyes.blue.amount.value, 1).log10(); }, - description: "Dye Synergy II" + description: "Dye Synergy II", + enabled: oil.row3Upgrades[3].bought })) ); }