Skip to content

Commit

Permalink
fix pet score (#634)
Browse files Browse the repository at this point in the history
* fix pet score

* run prettier and lint
  • Loading branch information
Johannes7k75 authored Nov 24, 2024
1 parent 518a6da commit 1df5846
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/structures/SkyBlock/SkyblockMember.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ class SkyblockMember {
for (const pet of data.m.pets_data.pets) {
if (!(pet.type in highestRarity) || Constants.petScore[pet.tier] > highestRarity[pet.type]) {
highestRarity[pet.type] = Constants.petScore[pet.tier];
if ('PET_ITEM_TIER_BOOST' === pet.heldItem && 'MYTHIC' !== pet.tier) {
highestRarity[pet.type] += 1;
}
}
}

Expand Down

0 comments on commit 1df5846

Please sign in to comment.