Fix issue with estimate time

This commit is contained in:
thepaperpilot 2023-04-27 22:54:24 -05:00
parent 4510cd0b43
commit be9b837558

View file

@ -129,10 +129,9 @@ export function createPlane(id: string, tier: Resources, seed: number) {
description description
} }
})); }));
const eta = estimateTime(resource, computedResourceGain, cost);
addTooltip(upgrade, { addTooltip(upgrade, {
display: upgrade.bought.value display: () => (upgrade.bought.value ? "" : eta.value),
? ""
: estimateTime(resource, computedResourceGain, cost),
direction: Direction.Down direction: Direction.Down
}); });
upgrades.push(upgrade); upgrades.push(upgrade);