diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-22 22:47:58 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-22 22:47:58 +0200 |
commit | 51af64037d0422d4d6b603e1164e60cf4b50dda0 (patch) | |
tree | 7db56555251734d1df908248715c3d8e7ea7fcf0 /src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt | |
parent | dd8b540be1eb5a97b26750b3c75f15d3af305e90 (diff) | |
download | skyhanni-51af64037d0422d4d6b603e1164e60cf4b50dda0.tar.gz skyhanni-51af64037d0422d4d6b603e1164e60cf4b50dda0.tar.bz2 skyhanni-51af64037d0422d4d6b603e1164e60cf4b50dda0.zip |
Pet Experience Tooltip
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |