hide "limited by" for trees after ivy lv 5

This commit is contained in:
Yhvr 2022-12-21 14:35:16 -05:00
parent cad540735e
commit 247085978a

View file

@ -908,17 +908,27 @@ const layer = createLayer(id, function (this: BaseLayer) {
style="margin-bottom: 0"
productionDisplay={
Decimal.gt(computedAutoCuttingAmount.value, 0)
? `+${format(
averageLogGain.value
)}/s average<br/>equilibrium: +${formatLimit(
? `+${format(averageLogGain.value)}/s average<br/>equilibrium: +${
management.elfTraining.planterElfTraining.milestones[4].earned
.value
? format(logGain.apply(computedAutoCuttingAmount.value)) +
"/s"
: formatLimit(
[
[computedAutoCuttingAmount.value, "cutting speed"],
[computedAutoPlantingAmount.value, "planting speed"],
[Decimal.mul(computedTotalTrees.value, 20), "forest cap"]
[
computedAutoPlantingAmount.value,
"planting speed"
],
[
Decimal.mul(computedTotalTrees.value, 20),
"forest cap"
]
],
"/s",
logGain.apply(1)
)}`
)
}`
: undefined
}
/>