diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt index e2efab05b..5797c50cd 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt @@ -29,6 +29,7 @@ import at.hannibal2.skyhanni.utils.NumberUtil.shortFormat import at.hannibal2.skyhanni.utils.PrimitiveIngredient import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getAbilityScrolls +import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getAppliedPocketSackInASack import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getArmorDye import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getAttributes import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getBookwormBookCount @@ -98,6 +99,7 @@ object EstimatedItemValueCalculator { ::addManaDisintegrators, ::addPolarvoidBook, ::addBookwormBook, + ::addPocketSackInASack, // cosmetic ::addHelmetSkin, @@ -393,6 +395,15 @@ object EstimatedItemValueCalculator { return price } + private fun addPocketSackInASack(stack: ItemStack, list: MutableList<String>): Double { + val count = stack.getAppliedPocketSackInASack() ?: return 0.0 + + val pocketSackInASack = "POCKET_SACK_IN_A_SACK".asInternalName() + val price = pocketSackInASack.getPrice() * count + list.add("§7Pocket Sack-in-a-Sack: §e$count§7/§e3 §7(§6" + price.shortFormat() + "§7)") + return price + } + private fun addBookwormBook(stack: ItemStack, list: MutableList<String>): Double { val count = stack.getBookwormBookCount() ?: return 0.0 |