Fixed foundation cost display

This commit is contained in:
Jacorb90 2022-12-01 23:52:57 -05:00
parent a0f37285d7
commit 52b51fea90

View file

@ -44,7 +44,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
<br />
<br />
<span style="font-size: large">
Req: {displayResource(trees.logs, foundationConversion.currentAt.value)}{" "}
Cost: {displayResource(trees.logs, Decimal.gte(foundationConversion.actualGain.value, 1) ? foundationConversion.currentAt.value : foundationConversion.nextAt.value)}{" "}
{trees.logs.displayName}
</span>
</>