From 1df5846135b8d95c57dd2da7c6e74f4969b14613 Mon Sep 17 00:00:00 2001 From: Johannes7k75 <57235955+Johannes7k75@users.noreply.github.com> Date: Sun, 24 Nov 2024 03:38:26 +0100 Subject: [PATCH] fix pet score (#634) * fix pet score * run prettier and lint --- src/structures/SkyBlock/SkyblockMember.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/structures/SkyBlock/SkyblockMember.js b/src/structures/SkyBlock/SkyblockMember.js index 90c8c5c5..0305a80d 100644 --- a/src/structures/SkyBlock/SkyblockMember.js +++ b/src/structures/SkyBlock/SkyblockMember.js @@ -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; + } } }