aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2023-07-05 17:25:19 +0200
committerGitHub <noreply@github.com>2023-07-05 17:25:19 +0200
commita7e9a6c3aedaddfcdb7772d9164f9a32d5006bb7 (patch)
tree3999caf0f687c907c1bda72d29c5a1f8b8f74a6a /src/main/java/at/hannibal2/skyhanni/features
parent7d4d1e0f0f21ef3407e60795602193c07f4cd5d9 (diff)
downloadskyhanni-a7e9a6c3aedaddfcdb7772d9164f9a32d5006bb7.tar.gz
skyhanni-a7e9a6c3aedaddfcdb7772d9164f9a32d5006bb7.tar.bz2
skyhanni-a7e9a6c3aedaddfcdb7772d9164f9a32d5006bb7.zip
Added Polarvoid Books to EstimatedItemValue (#300)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt
index 683934235..df1763130 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt
@@ -24,6 +24,7 @@ import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getGemstones
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getHelmetSkin
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getHotPotatoCount
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getManaDisintegrators
+import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getPolarvoidBookCount
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getPowerScroll
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getReforgeName
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getRune
@@ -155,6 +156,7 @@ object EstimatedItemValue {
totalPrice += addSilex(stack, list)
totalPrice += addTransmissionTuners(stack, list)
totalPrice += addManaDisintegrators(stack, list)
+ totalPrice += addPolarvoidBook(stack, list)
// cosmetic
totalPrice += addHelmetSkin(stack, list)
@@ -293,6 +295,15 @@ object EstimatedItemValue {
return price
}
+ private fun addPolarvoidBook(stack: ItemStack, list: MutableList<String>): Double {
+ val count = stack.getPolarvoidBookCount() ?: return 0.0
+
+ val broDilloMiningSoBad = "POLARVOID_BOOK"
+ val price = NEUItems.getPrice(broDilloMiningSoBad) * count
+ list.add("§7Polarvoid: §e$count§7/§e5 §7(§6" + NumberUtil.format(price) + "§7)")
+ return price
+ }
+
private fun addSilex(stack: ItemStack, list: MutableList<String>): Double {
val tier = stack.getSilexCount() ?: return 0.0