Fix reset buttons not displaying Req if buyMax is true (but computed)

This commit is contained in:
thepaperpilot 2022-05-23 22:32:24 -05:00
parent 8fbecbbd4e
commit 4f39dbc7f9

View file

@ -106,10 +106,10 @@ export function createResetButton<T extends ClickableOptions & ResetButtonOption
{resetButton.conversion.gainResource.displayName} {resetButton.conversion.gainResource.displayName}
<div v-show={unref(resetButton.showNextAt)}> <div v-show={unref(resetButton.showNextAt)}>
<br /> <br />
{resetButton.conversion.buyMax ? "Next:" : "Req:"}{" "} {unref(resetButton.conversion.buyMax) ? "Next:" : "Req:"}{" "}
{displayResource( {displayResource(
resetButton.conversion.baseResource, resetButton.conversion.baseResource,
resetButton.conversion.buyMax || unref(resetButton.conversion.buyMax) ||
Decimal.floor(unref(resetButton.conversion.actualGain)).neq(1) Decimal.floor(unref(resetButton.conversion.actualGain)).neq(1)
? unref(resetButton.conversion.nextAt) ? unref(resetButton.conversion.nextAt)
: unref(resetButton.conversion.currentAt) : unref(resetButton.conversion.currentAt)