From 3d4e33d56f3592671899c6e2943580d3780596d2 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 2 Dec 2023 13:40:33 +0100 Subject: Hide Scavenger 5 on Ice Spray Wand and Replenish on Advanced Gardening Hoe for Estimated Item Value. --- .../features/misc/items/EstimatedItemValueCalculator.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main/java') 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 f3e27957d..7c663470b 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 @@ -527,6 +527,7 @@ object EstimatedItemValueCalculator { return price } + // TODO repo private val hasAlwaysScavenger = listOf( "CRYPT_DREADLORD_SWORD".asInternalName(), "ZOMBIE_SOLDIER_CUTLASS".asInternalName(), @@ -535,6 +536,11 @@ object EstimatedItemValueCalculator { "ZOMBIE_KNIGHT_SWORD".asInternalName(), "SILENT_DEATH".asInternalName(), "ZOMBIE_COMMANDER_WHIP".asInternalName(), + "ICE_SPRAY_WAND".asInternalName(), + ) + + private val hasAlwaysReplenish = listOf( + "ADVANCED_GARDENING_HOE".asInternalName(), ) private fun addEnchantments(stack: ItemStack, list: MutableList): Double { @@ -554,6 +560,10 @@ object EstimatedItemValueCalculator { continue } + if (rawName == "replenish" && rawLevel == 1 && internalName in hasAlwaysReplenish) { + continue + } + var level = rawLevel var multiplier = 1 if (rawName == "ultimate_chimera" || rawName == "ultimate_fatal_tempo" || rawName == "smoldering") { -- cgit