Skip to content

Commit

Permalink
fix(pets): total xp progress
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckySoLucky committed Dec 28, 2024
1 parent 70bb293 commit 4679a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/server/stats/pets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function getProfilePets(pets: Pet[]) {
outputPet.lore.push(`§2${"-".repeat(progress)}§f${"-".repeat(20 - progress)} §e${numerator} §6/ §e${denominator}`);
}

outputPet.lore.push(``, `§7Total XP: §e${formatNumber(outputPet.level.xp, 1)} §6/ §e${formatNumber(outputPet.level.xpMaxLevel)} §6(100%)`, `§7Candy Used: §e${pet.candyUsed ?? 0} §6/ §e10`);
outputPet.lore.push(``, `§7Total XP: §e${formatNumber(outputPet.level.xp, 1)} §6/ §e${formatNumber(outputPet.level.xpMaxLevel)} §6(${((outputPet.level.xp / outputPet.level.xpMaxLevel) * 100).toFixed(2)}%)`, `§7Candy Used: §e${pet.candyUsed ?? 0} §6/ §e10`);

if (outputPet.price && outputPet.price > 0) {
outputPet.lore.push(``, `§7Item Value: §6${Math.floor(outputPet.price).toLocaleString()} Coins §7(§6${formatNumber(outputPet.price)}§7)`);
Expand Down

0 comments on commit 4679a88

Please sign in to comment.