From 3e80a0df99f268d6966d28909dce9dc4052cf5c4 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 16 Apr 2023 20:38:46 +0200 Subject: Added JACOBS_TICKET as ignoreNoNpcPrice --- .../at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- cgit