Add limit display to metal production

This commit is contained in:
Seth Posner 2022-12-06 11:52:25 -08:00
parent 4bfbf2a25a
commit 99670cc488

View file

@ -362,6 +362,12 @@ const layer = createLayer(id, function (this: BaseLayer) {
0: undefined,
1: <>+{format(computedMetalGain.value)}/s</>
}[Decimal.compare(computedMetalGain.value, 0)]}
{Decimal.lt(computedOreGain.value, computedAutoSmeltSpeed.value)
? <> (Limited by {ore.displayName})</>
: Decimal.lt(smeltableOre.value, Decimal.floor(ore.value))
? <> (Limited by {coal.coal.displayName})</>
: undefined
}
</>
}
/>