diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-04 15:41:40 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-04 15:42:12 +0200 |
commit | 972e9eec12b48696e66c0a6f4cdd75e3fe3b2ab9 (patch) | |
tree | 86354b9ce4e26ec1ca41d59d13ebb2f9b6cd5902 /src/main/java/at/hannibal2/skyhanni/features/misc | |
parent | c18b03b84b99ce868a003d70f44baab3145ca0b1 (diff) | |
download | skyhanni-972e9eec12b48696e66c0a6f4cdd75e3fe3b2ab9.tar.gz skyhanni-972e9eec12b48696e66c0a6f4cdd75e3fe3b2ab9.tar.bz2 skyhanni-972e9eec12b48696e66c0a6f4cdd75e3fe3b2ab9.zip |
Chimera 5 does not sell in bazaar, so we will show chimera 1 multipliers instead
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/EstimatedItemValue.kt | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/EstimatedItemValue.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/EstimatedItemValue.kt index 6c64b2d09..eeff2b1d9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/EstimatedItemValue.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/EstimatedItemValue.kt @@ -432,16 +432,36 @@ class EstimatedItemValue { } var level = rawLevel + var multiplier = 1 + if (rawName == "ultimate_chimera") { + + when (rawLevel) { + 2 -> multiplier = 2 + 3 -> multiplier = 4 + 4 -> multiplier = 8 + 5 -> multiplier = 16 + } + level = 1 + println("") + println("rawName: $rawName") + println("rawLevel: $rawLevel") + println("multiplier: $multiplier") + + } + if (internalName.startsWith("ENCHANTED_BOOK_BUNDLE_")) { + multiplier = 5 + } if (rawName in tieredEnchants) level = 1 val enchantmentName = "$rawName;$level".uppercase() val itemStack = NEUItems.getItemStackOrNull(enchantmentName) ?: continue - var name = itemStack.getLore()[0] val singlePrice = NEUItems.getPriceOrNull(enchantmentName) ?: continue - val multiplier = if (internalName.startsWith("ENCHANTED_BOOK_BUNDLE_")) { - name = "§85x $name" - 5 - } else 1 + + + var name = itemStack.getLore()[0] + if (multiplier > 1) { + name = "§8${multiplier}x $name" + } val price = singlePrice * multiplier totalPrice += price |