mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-22 00:21:31 +00:00
Fix issue with estimate time
This commit is contained in:
parent
4510cd0b43
commit
be9b837558
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue