From 0bbfe4c170dfe31b846c77a02f96110b2726769a Mon Sep 17 00:00:00 2001 From: Yhvr Date: Wed, 21 Dec 2022 14:56:49 -0500 Subject: [PATCH] hide "lmited by" for metal after mastery --- src/data/layers/metal.tsx | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/src/data/layers/metal.tsx b/src/data/layers/metal.tsx index ffb1f28..0ee308d 100644 --- a/src/data/layers/metal.tsx +++ b/src/data/layers/metal.tsx @@ -746,21 +746,31 @@ const layer = createLayer(id, function (this: BaseLayer) { {autoSmeltEnabled.value && (Decimal.gte(industrialCrucible.amount.value, 1) || masteryEffectActive.value) - ? `+${formatLimit( - [ - [computedAutoSmeltSpeed.value, "smelting speed"], - [computedOreGain.value, "ore gain"], - [ - Decimal.div(coal.computedCoalGain.value, coalCost), - "coal gain" - ] - ], - "/s", - Decimal.mul( - computedOrePurity.value, - computedAutoSmeltMulti.value + ? masteryEffectActive.value + ? formatGain( + Decimal.mul( + computedOrePurity.value, + computedOrePurity.value + ).mul(computedAutoSmeltSpeed.value) ) - )}` + : `+${formatLimit( + [ + [computedAutoSmeltSpeed.value, "smelting speed"], + [computedOreGain.value, "ore gain"], + [ + Decimal.div( + coal.computedCoalGain.value, + coalCost + ), + "coal gain" + ] + ], + "/s", + Decimal.mul( + computedOrePurity.value, + computedAutoSmeltMulti.value + ) + )}` : undefined} ))}