diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-16 20:38:46 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-16 20:38:46 +0200 |
commit | 3e80a0df99f268d6966d28909dce9dc4052cf5c4 (patch) | |
tree | a8238acf057d14ff9bfabb258219659a10e31411 /src | |
parent | 48a157a5385bf23ad7424db2de2a30b9b77e8681 (diff) | |
download | skyhanni-3e80a0df99f268d6966d28909dce9dc4052cf5c4.tar.gz skyhanni-3e80a0df99f268d6966d28909dce9dc4052cf5c4.tar.bz2 skyhanni-3e80a0df99f268d6966d28909dce9dc4052cf5c4.zip |
Added JACOBS_TICKET as ignoreNoNpcPrice
Diffstat (limited to 'src')
-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 |