Skip to content

Commit ab3eb0b

Browse files
authored
Merge pull request #1679 from ThingEngineering/main
Deploy
2 parents fb17fdf + 3edb96a commit ab3eb0b

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

apps/frontend/data/dungeon.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ export const dungeonMap: Record<number, Dungeon> = Object.fromEntries(
116116
// [key level, item level] first match >= key is used
117117
export const keyVaultItemLevel: Array<Array<number>> = [
118118
[10, 147, 5], // Myth 1
119-
[7, 704, 4], // Hero 4
120-
[6, 701, 4], // Hero 3
121-
[4, 697, 4], // Hero 2
119+
[7, 144, 4], // Hero 4
120+
[6, 141, 4], // Hero 3
121+
[4, 137, 4], // Hero 2
122122
[2, 134, 4], // Hero 1
123123
[1, 131, 3], // [0] Champion 4
124124
[0, 118, 2], // [H] Veteran 4

apps/frontend/user-home/components/collections/mage-tower/MageTower.svelte

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@
3535
];
3636
})
3737
);
38+
let overallHave = $derived(
39+
data
40+
.map(([, classData]) => classData.filter(([, has]) => has).length)
41+
.reduce((a, b) => a + b, 0)
42+
);
43+
let overallTotal = $derived(
44+
data
45+
.map(
46+
([, classData]) => classData.filter(([specIndex]) => specIndex !== undefined).length
47+
)
48+
.reduce((a, b) => a + b, 0)
49+
);
3850
</script>
3951

4052
<style lang="scss">
@@ -52,7 +64,9 @@
5264
<table class="table table-striped">
5365
<thead>
5466
<tr>
55-
<th></th>
67+
<th>
68+
<CollectibleCount counts={new UserCount(overallHave, overallTotal)} />
69+
</th>
5670
{#each mageTowerChallengeOrder as challenge, challengeIndex (challenge)}
5771
{@const have = data.filter(([, classData]) => classData[challengeIndex][1]).length}
5872
{@const total = data.filter(

0 commit comments

Comments
 (0)