mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-21 16:13:54 +00:00
Add ETA to treasures
This commit is contained in:
parent
fd7df64e0e
commit
89a1737283
1 changed files with 7 additions and 2 deletions
|
@ -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) {
|
|||
<h2>{name}</h2>
|
||||
</span>
|
||||
<span class="nav-segment">
|
||||
<h3>{tier}</h3>
|
||||
<h3>{tier}-tier</h3>
|
||||
</span>
|
||||
<span class="nav-segment">
|
||||
<button
|
||||
|
@ -430,7 +435,7 @@ export function createPlane(id: string, tier: Resources, seed: number) {
|
|||
/s)
|
||||
</span>
|
||||
</StickyVue>
|
||||
<SpacerVue height="50px" />
|
||||
<SpacerVue height="60px" />
|
||||
{features.map(row => renderRow(...row))}
|
||||
{render(modifiersModal)}
|
||||
</>
|
||||
|
|
Loading…
Reference in a new issue