diff options
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) { |