diff options
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt | 2 |
1 files changed, 1 insertions, 1 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 3cca7d132..743cef9c8 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 @@ -233,7 +233,7 @@ object EstimatedItemValue { private fun getPriceOrCompositePriceForAttribute(attributeName: String, level: Int): Double? { return (1..10).mapNotNull { lowerLevel -> NEUItems.getPriceOrNull("$attributeName;$lowerLevel") - ?.let { it * (1 shl lowerLevel) / (1 shl level).toDouble() } + ?.let { it / (1 shl lowerLevel) * (1 shl level).toDouble() } }.minOrNull() } |