From 5126324749cc4bb10314bbed1fe55c837c9f7e02 Mon Sep 17 00:00:00 2001 From: DarthGigi <47110839+DarthGigi@users.noreply.github.com> Date: Sun, 24 Nov 2024 19:23:39 +0100 Subject: [PATCH 1/3] feat: add crimson isle --- src/lib/layouts/stats/Main.svelte | 2 + src/lib/sections/stats/CrimsonIsle.svelte | 80 +++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 src/lib/sections/stats/CrimsonIsle.svelte diff --git a/src/lib/layouts/stats/Main.svelte b/src/lib/layouts/stats/Main.svelte index 840dbd88..b727a28e 100644 --- a/src/lib/layouts/stats/Main.svelte +++ b/src/lib/layouts/stats/Main.svelte @@ -7,6 +7,7 @@ import Armor from "$lib/sections/stats/Armor.svelte"; import Bestiary from "$lib/sections/stats/Bestiary.svelte"; import Collections from "$lib/sections/stats/Collections.svelte"; + import CrimsonIsle from "$lib/sections/stats/CrimsonIsle.svelte"; import Dungeons from "$lib/sections/stats/Dungeons.svelte"; import Inventory from "$lib/sections/stats/Inventory.svelte"; import Minions from "$lib/sections/stats/Minions.svelte"; @@ -38,6 +39,7 @@ + diff --git a/src/lib/sections/stats/CrimsonIsle.svelte b/src/lib/sections/stats/CrimsonIsle.svelte new file mode 100644 index 00000000..dfb06187 --- /dev/null +++ b/src/lib/sections/stats/CrimsonIsle.svelte @@ -0,0 +1,80 @@ + + + +
+ {#if isle.factions.selectedFaction === "none"} + {profile.username} hasn't visited the Crimson Isle yet. + {:else} + + + + {/if} +
+ + {#if isle.kuudra.totalKills} +
+

Kuudra Completions

+ +
+ {#each isle.kuudra.tiers as tier} + {@const hasUnlocked = tier.kills} + +
+
+ {tier.name} +
+ Kills: + {format(tier.kills)} +
+
+
+
+ {/each} +
+
+ {/if} + + {#if isle.dojo.totalPoints} +
+

Dojo Completions

+ = 7000} /> +
+ {#each isle.dojo.challenges as challenge} + {@const hasMaxed = challenge.points >= 1000} + {@const hasUnlocked = challenge.points} + +
+
+ {challenge.name} +
+ Points: + {format(challenge.points)} +
+
+ Rank: + {challenge.rank} +
+
+ Time: + {challenge.formattedTime} Seconds +
+
+
+
+ {/each} +
+
+ {/if} + From b078d9089b187c616da9c9ae644532d8e35845a6 Mon Sep 17 00:00:00 2001 From: DarthGigi <47110839+DarthGigi@users.noreply.github.com> Date: Sun, 24 Nov 2024 19:25:05 +0100 Subject: [PATCH 2/3] remove seconds --- src/lib/constants/NotEnoughUpdates-REPO | 2 +- src/lib/sections/stats/CrimsonIsle.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/constants/NotEnoughUpdates-REPO b/src/lib/constants/NotEnoughUpdates-REPO index 1f28d4df..6f22c74d 160000 --- a/src/lib/constants/NotEnoughUpdates-REPO +++ b/src/lib/constants/NotEnoughUpdates-REPO @@ -1 +1 @@ -Subproject commit 1f28d4dfcda3700df20bfb8478bb00aa01cd6b4e +Subproject commit 6f22c74dfd876a8c8270d1bc59777594f1a8ae86 diff --git a/src/lib/sections/stats/CrimsonIsle.svelte b/src/lib/sections/stats/CrimsonIsle.svelte index dfb06187..f8cada97 100644 --- a/src/lib/sections/stats/CrimsonIsle.svelte +++ b/src/lib/sections/stats/CrimsonIsle.svelte @@ -68,7 +68,7 @@
Time: - {challenge.formattedTime} Seconds + {challenge.formattedTime}
From ba1999d1e87e511f2a3d192fc8e29776ae53f109 Mon Sep 17 00:00:00 2001 From: DarthGigi <47110839+DarthGigi@users.noreply.github.com> Date: Sun, 24 Nov 2024 20:25:17 +0100 Subject: [PATCH 3/3] feat: add rift --- src/lib/layouts/stats/Main.svelte | 2 + src/lib/sections/stats/Rift.svelte | 81 ++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 src/lib/sections/stats/Rift.svelte diff --git a/src/lib/layouts/stats/Main.svelte b/src/lib/layouts/stats/Main.svelte index b727a28e..6eac4216 100644 --- a/src/lib/layouts/stats/Main.svelte +++ b/src/lib/layouts/stats/Main.svelte @@ -12,6 +12,7 @@ import Inventory from "$lib/sections/stats/Inventory.svelte"; import Minions from "$lib/sections/stats/Minions.svelte"; import Pets from "$lib/sections/stats/Pets.svelte"; + import Rift from "$lib/sections/stats/Rift.svelte"; import SkillsSection from "$lib/sections/stats/SkillsSection.svelte"; import Slayer from "$lib/sections/stats/Slayer.svelte"; import Weapons from "$lib/sections/stats/Weapons.svelte"; @@ -40,6 +41,7 @@ + diff --git a/src/lib/sections/stats/Rift.svelte b/src/lib/sections/stats/Rift.svelte new file mode 100644 index 00000000..442b4ff8 --- /dev/null +++ b/src/lib/sections/stats/Rift.svelte @@ -0,0 +1,81 @@ + + + +
+ +
+
+ Lifetime Motes: + + {rift.motes.lifetime} + + Total Motes earned in Rift. +
+
+ Motes Orbs: + + {rift.motes.orbs} + + Amount of Mote Orbs player has picked up inside of the Rift. +
+
+
+ +
+ Progress: + + {((rift.enigma.souls / rift.enigma.totalSouls) * 100).toFixed(2)}% + + Percentage of Enigma Souls found. +
+
+ +
+
+

Timecharms

+ +
+ {#each rift.timecharms.timecharms as timecharm} + {@const hasUnlocked = timecharm.unlocked} + +
+
+ {timecharm.name} +
+ {#if hasUnlocked} + + Obtained {formatDistanceToNowStrict(timecharm.unlockedAt, { + addSuffix: true + })} + + {:else} + Not Obtained + {/if} +
+
+
+
+
+ Obtained: + + {formatDate(timecharm.unlockedAt, "dd MMMM yyyy 'at' HH:mm")} + +
+
+
+ {/each} +
+
+