From 9ff71b4b53f4c97933cf22c2d3425e3b208d44d5 Mon Sep 17 00:00:00 2001 From: jani270 <69345714+jani270@users.noreply.github.com> Date: Mon, 5 Feb 2024 20:49:04 +0100 Subject: Fixed Divine Gift and Flash showing the wrong/no price in EstimatedItemValue (#981) Fixed Divine Gift and Flash enchants showing the wrong/no price in EstimatedItemValue. #981 --- .../skyhanni/features/misc/items/EstimatedItemValueCalculator.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main') 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 fbaed21a9..df915988d 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 @@ -546,6 +546,8 @@ object EstimatedItemValueCalculator { val map = mutableMapOf() val tieredEnchants = listOf("compact", "cultivating", "champion", "expertise", "hecatomb") + val onlyTierOnePrices = + listOf("ultimate_chimera", "ultimate_fatal_tempo", "smoldering", "ultimate_flash", "divine_gift") val internalName = stack.getInternalName() for ((rawName, rawLevel) in enchantments) { @@ -562,7 +564,7 @@ object EstimatedItemValueCalculator { var level = rawLevel var multiplier = 1 - if (rawName == "ultimate_chimera" || rawName == "ultimate_fatal_tempo" || rawName == "smoldering") { + if (rawName in onlyTierOnePrices) { when (rawLevel) { 2 -> multiplier = 2 -- cgit