diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt index 4e7bb1f0c..da06c15f1 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt @@ -55,7 +55,7 @@ class BazaarDataHolder { val buyPrice = NEUItems.getPrice(internalName, false) val npcPrice = npcPrices[internalName].let { if (it == null) { - if (!internalName.startsWith("TURBO_") && internalName != "PURPLE_CANDY") { + if (!ignoreNoNpcPrice(internalName)) { LorenzUtils.debug("NPC price not found for item '$internalName'") } 0.0 @@ -66,4 +66,12 @@ class BazaarDataHolder { bazaarData[internalName] = data return data } + + private fun ignoreNoNpcPrice(internalName: String): Boolean { + if (internalName.startsWith("TURBO_")) return true + if (internalName == "PURPLE_CANDY") return true + if (internalName == "JACOBS_TICKET") return true + + return false + } }
\ No newline at end of file |