From 89a17372836579ebdfaf8d18fb725a0e6013fec9 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 29 Apr 2023 13:21:45 -0500 Subject: [PATCH] Add ETA to treasures --- src/data/planes.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/data/planes.tsx b/src/data/planes.tsx index a8ded1d..5f8c9bd 100644 --- a/src/data/planes.tsx +++ b/src/data/planes.tsx @@ -276,6 +276,11 @@ export function createPlane(id: string, tier: Resources, seed: number) { effectedResource, resourceMulti })) as GenericAchievement; + const eta = estimateTime(resource, computedResourceGain, cost); + addTooltip(milestone, { + display: () => (milestone.earned.value ? "" : eta.value), + direction: Direction.Down + }); features.push([milestone]); visibility = milestone.earned; } @@ -402,7 +407,7 @@ export function createPlane(id: string, tier: Resources, seed: number) {

{name}

-

{tier}

+

{tier}-tier