From 489906992a6805b4c081156b364310ac133cad28 Mon Sep 17 00:00:00 2001 From: Zickles Date: Sat, 20 Jul 2024 14:31:42 -0400 Subject: [PATCH] mb for not commiting this for like 4 years :) --- src/lib/constants/NotEnoughUpdates-REPO | 2 +- src/lib/sections/stats/Bestiary.svelte | 40 +++++ src/lib/sections/stats/Collections.svelte | 36 ++++ src/lib/sections/stats/CrimsonIsle.svelte | 44 +++++ src/lib/sections/stats/Minions.svelte | 40 +++++ src/lib/sections/stats/Miscellaneous.svelte | 178 ++++++++++++++++++++ src/lib/sections/stats/Rift.svelte | 57 +++++++ 7 files changed, 396 insertions(+), 1 deletion(-) create mode 100644 src/lib/sections/stats/Bestiary.svelte create mode 100644 src/lib/sections/stats/Collections.svelte create mode 100644 src/lib/sections/stats/CrimsonIsle.svelte create mode 100644 src/lib/sections/stats/Minions.svelte create mode 100644 src/lib/sections/stats/Miscellaneous.svelte create mode 100644 src/lib/sections/stats/Rift.svelte diff --git a/src/lib/constants/NotEnoughUpdates-REPO b/src/lib/constants/NotEnoughUpdates-REPO index 9ab22630..62564084 160000 --- a/src/lib/constants/NotEnoughUpdates-REPO +++ b/src/lib/constants/NotEnoughUpdates-REPO @@ -1 +1 @@ -Subproject commit 9ab226302fe724f91ad60eeafe915f47f5e60264 +Subproject commit 62564084c5a630ce19e4ed71e639a819500769a9 diff --git a/src/lib/sections/stats/Bestiary.svelte b/src/lib/sections/stats/Bestiary.svelte new file mode 100644 index 00000000..f6bbc672 --- /dev/null +++ b/src/lib/sections/stats/Bestiary.svelte @@ -0,0 +1,40 @@ + + + +
+ + + +
+ + {#each Object.entries(bestiary.categories) as [_, category]} + {@const max = category.mobsMaxed === category.mobs.length ? "MAX!" : `(${category.mobsMaxed} / ${category.mobs.length} MAX)`} + + {#each category.mobs as mob} + + {#if mob.kills >= mob.maxKills} +
+

Progress: max!

+
+ {:else} +
+

Progress to Tier {mob.tier}: {mob.kills} / {mob.nextTierKills}

+

+

Overall Progress: {mob.kills} / {mob.maxKills}

+
+ {/if} +
+ {/each} +
+ {/each} +
diff --git a/src/lib/sections/stats/Collections.svelte b/src/lib/sections/stats/Collections.svelte new file mode 100644 index 00000000..02361bf5 --- /dev/null +++ b/src/lib/sections/stats/Collections.svelte @@ -0,0 +1,36 @@ + + + +
+ +
+ + {#each Object.entries(collections.categories) as [_, category]} + {@const max = category.maxTiers === category.totalTiers ? "MAX!" : `(${category.totalTiers} / ${category.maxTiers} MAX)`} + + {#each category.items as collection} + +
+ {#each collection.amounts as amount} +

{amount.username}: {format(amount.amount)}

+ {/each} +

+

Total Amount: {format(collection.totalAmount)}

+
+
+ {/each} +
+ {/each} +
diff --git a/src/lib/sections/stats/CrimsonIsle.svelte b/src/lib/sections/stats/CrimsonIsle.svelte new file mode 100644 index 00000000..37aa6906 --- /dev/null +++ b/src/lib/sections/stats/CrimsonIsle.svelte @@ -0,0 +1,44 @@ + + + +
+ + + +
+ + +
+ +
+ {#each isle.kuudra.tiers as type} + + {/each} +
+ +
+ +
+ {#each isle.dojo.challenges as challenge} + + {/each} +
+
diff --git a/src/lib/sections/stats/Minions.svelte b/src/lib/sections/stats/Minions.svelte new file mode 100644 index 00000000..802067b2 --- /dev/null +++ b/src/lib/sections/stats/Minions.svelte @@ -0,0 +1,40 @@ + + + +
+ + + + +
+ + {#each Object.entries(minions.minions) as [name, category]} + {@const max = category.maxedMinions === category.totalMinions ? "MAX!" : `(${category.maxedMinions} / ${category.totalMinions} MAX)`} + + {#each category.minions as minion} + +
+ {#each Array.from({ length: minion.maxTier }, (_, index) => index + 1) as tier} + {#if minion.tiers.at(tier - 1) !== undefined} +

{tier}

+ {:else} +

{tier}

+ {/if} + {/each} +
+
+ {/each} +
+ {/each} +
diff --git a/src/lib/sections/stats/Miscellaneous.svelte b/src/lib/sections/stats/Miscellaneous.svelte new file mode 100644 index 00000000..99f94e00 --- /dev/null +++ b/src/lib/sections/stats/Miscellaneous.svelte @@ -0,0 +1,178 @@ + + + + + {#each misc.essence as essence} + + {/each} + + + +
+ + + +
+ + +
+
+ +
+ + + + +
+
+ +
+ +
+ {#each Object.entries(misc.dragons.most_damage) as [dragon, dmg]} + {#if dragon !== "best"} +

{dragon}: {format(dmg.toFixed(2))}

+ {/if} + {/each} +
+
+ + +
+ {#each Object.entries(misc.dragons.fastest_kill) as [dragon, time]} + {#if dragon !== "best"} +

{dragon}: {time}

+ {/if} + {/each} +
+
+ + +
+ {#each Object.entries(misc.dragons.fastest_kill) as [dragon, death]} + {#if dragon !== "total"} +

{dragon}: {format(death)}

+ {/if} + {/each} +
+
+
+
+ +
+ + +
+
+ +
+ +
+
+ + +
+ +
+

Pet: {misc.pet_milestones.sea_creatures_killed.rarity}

+

Progress: {misc.pet_milestones.sea_creatures_killed.progress === "100.00" ? "maxed!" : misc.pet_milestones.sea_creatures_killed.progress}

+
+
+ +
+

Pet: {misc.pet_milestones.ores_mined.rarity}

+

Progress: {misc.pet_milestones.ores_mined.progress === "100.00" ? "maxed!" : misc.pet_milestones.ores_mined.progress}

+
+
+
+
+ + +
+ {#if misc.effects.active.length > 0} + + +
+

Active Potion Effects:

+ {#each misc.effects.active as effect} +

{effect.effect}

+ {/each} +
+
+ {/if} + {#if misc.effects.disabled.length > 0} + +
+

Disabled Potion Effects:

+ {#each misc.effects.disabled as effect} +

{effect}

+ {/each} +
+
+ {/if} + {#if misc.effects.paused.length > 0} + +
+

Paused Potion Effects:

+ {#each misc.effects.paused as effect} +

{effect}

+ {/each} +
+
+ {/if} +
+
+ +
+ + + + + +
+
+ +
+ + + +
+
+ +
+ + + + + +
+
+ +
+ + + + +
+
+
+ +
diff --git a/src/lib/sections/stats/Rift.svelte b/src/lib/sections/stats/Rift.svelte new file mode 100644 index 00000000..5e30e6e5 --- /dev/null +++ b/src/lib/sections/stats/Rift.svelte @@ -0,0 +1,57 @@ + + + +
+ +
+
+

Lifetime Motes: {format(Math.floor(rift.motes.lifetime))}

+

Total Motes earned in Rift.

+
+
+

Mote Orbs: {format(rift.motes.orbs)}

+

Amount of Mote Orbs player has picked up inside of the Rift.

+
+
+
+ +
+

Progress: 100.00%

+

Precent of Enigma Souls found.

+
+
+ +
+ + +
+ +
+ {#each rift.porhtal.porhtals as porhtal} + + {/each} +
+ +
+ +
+ {#each rift.timecharms.timecharms as timecharm} + {#if timecharm.unlocked === true} + + {:else} + + {/if} + {/each} +
+