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 &&
(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}
</>
))}