From 51af64037d0422d4d6b603e1164e60cf4b50dda0 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 22 Aug 2023 22:47:58 +0200 Subject: Pet Experience Tooltip --- src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt index 77d291d84..385571c56 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt @@ -42,6 +42,8 @@ object SkyBlockItemModifierUtils { fun ItemStack.getDungeonStarCount() = getAttributeInt("upgrade_level") ?: getAttributeInt("dungeon_item_level") + fun ItemStack.getPetExp() = getPetInfo()?.get("exp")?.asDouble + fun ItemStack.getPetCandyUsed(): Int? { val data = cachedData if (data.petCandies == -1) { -- cgit