hide "lmited by" for metal after mastery

This commit is contained in:
Yhvr 2022-12-21 14:56:49 -05:00
parent ad958913b0
commit 0bbfe4c170

View file

@ -746,21 +746,31 @@ const layer = createLayer(id, function (this: BaseLayer) {
{autoSmeltEnabled.value && {autoSmeltEnabled.value &&
(Decimal.gte(industrialCrucible.amount.value, 1) || (Decimal.gte(industrialCrucible.amount.value, 1) ||
masteryEffectActive.value) masteryEffectActive.value)
? `+${formatLimit( ? masteryEffectActive.value
[ ? formatGain(
[computedAutoSmeltSpeed.value, "smelting speed"], Decimal.mul(
[computedOreGain.value, "ore gain"], computedOrePurity.value,
[ computedOrePurity.value
Decimal.div(coal.computedCoalGain.value, coalCost), ).mul(computedAutoSmeltSpeed.value)
"coal gain"
]
],
"/s",
Decimal.mul(
computedOrePurity.value,
computedAutoSmeltMulti.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} : undefined}
</> </>
))} ))}