aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt11
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt2
2 files changed, 13 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
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
index 136fbfb0e..0f306b295 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
@@ -16,6 +16,8 @@ object SkyBlockItemModifierUtils {
fun ItemStack.getFarmingForDummiesCount() = getAttributeInt("farming_for_dummies_count")
+ fun ItemStack.getPolarvoidBookCount() = getAttributeInt("polarvoid")
+
fun ItemStack.getCultivatingCounter() = getAttributeLong("farmed_cultivating")
fun ItemStack.getHoeCounter() = getAttributeLong("mined_crops")