Skip to content
Merged

Deploy #1679

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/frontend/data/dungeon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ export const dungeonMap: Record<number, Dungeon> = Object.fromEntries(
// [key level, item level] first match >= key is used
export const keyVaultItemLevel: Array<Array<number>> = [
[10, 147, 5], // Myth 1
[7, 704, 4], // Hero 4
[6, 701, 4], // Hero 3
[4, 697, 4], // Hero 2
[7, 144, 4], // Hero 4
[6, 141, 4], // Hero 3
[4, 137, 4], // Hero 2
[2, 134, 4], // Hero 1
[1, 131, 3], // [0] Champion 4
[0, 118, 2], // [H] Veteran 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@
];
})
);
let overallHave = $derived(
data
.map(([, classData]) => classData.filter(([, has]) => has).length)
.reduce((a, b) => a + b, 0)
);
let overallTotal = $derived(
data
.map(
([, classData]) => classData.filter(([specIndex]) => specIndex !== undefined).length
)
.reduce((a, b) => a + b, 0)
);
</script>

<style lang="scss">
Expand All @@ -52,7 +64,9 @@
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th>
<CollectibleCount counts={new UserCount(overallHave, overallTotal)} />
</th>
{#each mageTowerChallengeOrder as challenge, challengeIndex (challenge)}
{@const have = data.filter(([, classData]) => classData[challengeIndex][1]).length}
{@const total = data.filter(
Expand Down
Loading