diff options
author | jani270 <69345714+jani270@users.noreply.github.com> | 2024-02-05 20:49:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 20:49:04 +0100 |
commit | 9ff71b4b53f4c97933cf22c2d3425e3b208d44d5 (patch) | |
tree | 4247c0520f74a9a92ba84b5079e9227d038a0cc1 /src | |
parent | 8e882724c15c0b1981afda587313ff449a6a7814 (diff) | |
download | skyhanni-9ff71b4b53f4c97933cf22c2d3425e3b208d44d5.tar.gz skyhanni-9ff71b4b53f4c97933cf22c2d3425e3b208d44d5.tar.bz2 skyhanni-9ff71b4b53f4c97933cf22c2d3425e3b208d44d5.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt | 4 |
1 files changed, 3 insertions, 1 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 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<String, Double>() 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 |