diff --git a/src/lib/layouts/stats/Main.svelte b/src/lib/layouts/stats/Main.svelte index 840dbd88..6eac4216 100644 --- a/src/lib/layouts/stats/Main.svelte +++ b/src/lib/layouts/stats/Main.svelte @@ -7,10 +7,12 @@ 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"; 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"; @@ -38,6 +40,8 @@ + + diff --git a/src/lib/sections/stats/CrimsonIsle.svelte b/src/lib/sections/stats/CrimsonIsle.svelte new file mode 100644 index 00000000..f8cada97 --- /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} + + + + + {/each} + + + {/if} + 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} + + +