Add ETA to treasures

This commit is contained in:
thepaperpilot 2023-04-29 13:21:45 -05:00
parent fd7df64e0e
commit 89a1737283

View file

@ -276,6 +276,11 @@ export function createPlane(id: string, tier: Resources, seed: number) {
effectedResource, effectedResource,
resourceMulti resourceMulti
})) as GenericAchievement; })) as GenericAchievement;
const eta = estimateTime(resource, computedResourceGain, cost);
addTooltip(milestone, {
display: () => (milestone.earned.value ? "" : eta.value),
direction: Direction.Down
});
features.push([milestone]); features.push([milestone]);
visibility = milestone.earned; visibility = milestone.earned;
} }
@ -402,7 +407,7 @@ export function createPlane(id: string, tier: Resources, seed: number) {
<h2>{name}</h2> <h2>{name}</h2>
</span> </span>
<span class="nav-segment"> <span class="nav-segment">
<h3>{tier}</h3> <h3>{tier}-tier</h3>
</span> </span>
<span class="nav-segment"> <span class="nav-segment">
<button <button
@ -430,7 +435,7 @@ export function createPlane(id: string, tier: Resources, seed: number) {
/s) /s)
</span> </span>
</StickyVue> </StickyVue>
<SpacerVue height="50px" /> <SpacerVue height="60px" />
{features.map(row => renderRow(...row))} {features.map(row => renderRow(...row))}
{render(modifiersModal)} {render(modifiersModal)}
</> </>