From 36211c50e041a7aa02fcdbc15720462899db907b Mon Sep 17 00:00:00 2001 From: Gigi <47110839+DarthGigi@users.noreply.github.com> Date: Sat, 13 Jul 2024 14:10:44 +0200 Subject: [PATCH] feat: Add Dungeons section to stats page (WIP) --- src/lib/layouts/stats/Main.svelte | 2 + src/lib/sections/stats/Dungeons.svelte | 56 ++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 src/lib/sections/stats/Dungeons.svelte diff --git a/src/lib/layouts/stats/Main.svelte b/src/lib/layouts/stats/Main.svelte index e53c1bc7..a17bf3c3 100644 --- a/src/lib/layouts/stats/Main.svelte +++ b/src/lib/layouts/stats/Main.svelte @@ -5,6 +5,7 @@ import Stats from "$lib/layouts/stats/Stats.svelte"; import Accessories from "$lib/sections/stats/Accessories.svelte"; import Armor from "$lib/sections/stats/Armor.svelte"; + import Dungeons from "$lib/sections/stats/Dungeons.svelte"; import Inventory from "$lib/sections/stats/Inventory.svelte"; import Pets from "$lib/sections/stats/Pets.svelte"; import SkillsSection from "$lib/sections/stats/SkillsSection.svelte"; @@ -28,6 +29,7 @@ + diff --git a/src/lib/sections/stats/Dungeons.svelte b/src/lib/sections/stats/Dungeons.svelte new file mode 100644 index 00000000..abf3cf4c --- /dev/null +++ b/src/lib/sections/stats/Dungeons.svelte @@ -0,0 +1,56 @@ + + +
+

Dungeons

+ {#if dungeons} +
+ + {#each Object.entries(dungeons.classes.classes) as [className, classData]} + + {/each} +
+
+ + +
+
+

Total Class XP: {format(dungeons.classes.totalClassExp.toFixed(2))}

+

Total Class XP gained in Catacombs.

+
+
+

Average Level: {format(dungeons.classes.classAverageWithProgress.toFixed(2))}

+

Average class level, includes progress to next level.

+
+
+

Average Level without progress: {format(dungeons.classes.classAverage.toFixed(2))}

+

Average class level without including partial level progress.

+
+
+
+ + +
+
+

Catacombs

+
+ {#each Object.entries(dungeons.catacombs) as [floor, floorData]} + {floor} + {#each Object.entries(floorData) as [key, value]} + TODO + {/each} + {/each} +
+
+ {/if} +