diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-09 14:21:22 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-09 14:21:22 +0200 |
commit | 5607930d95e526c529dac318d8e958b7b4de052b (patch) | |
tree | 9c9202b00937fc72a064c8a7d8e50ebef3a4766e /src/main/java/at/hannibal2/skyhanni/features/bazaar | |
parent | 14e306e77902fdbf3564121f069028dd5f55fef8 (diff) | |
download | skyhanni-5607930d95e526c529dac318d8e958b7b4de052b.tar.gz skyhanni-5607930d95e526c529dac318d8e958b7b4de052b.tar.bz2 skyhanni-5607930d95e526c529dac318d8e958b7b4de052b.zip |
Using NEUInternalName in more classes
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/bazaar')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt | 12 |
1 files changed, 6 insertions, 6 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 76e4b3f77..039b57540 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt @@ -68,7 +68,7 @@ class BazaarDataHolder { val buyPrice = internalName.getPrice(false) val npcPrice = npcPrices[internalName].let { if (it == null) { - if (!ignoreNoNpcPrice(internalName.asString())) { + if (!ignoreNoNpcPrice(internalName)) { LorenzUtils.debug("NPC price not found for '$internalName'") } 0.0 @@ -80,12 +80,12 @@ class BazaarDataHolder { return data } - private fun ignoreNoNpcPrice(internalName: String): Boolean { + private fun ignoreNoNpcPrice(internalName: NEUInternalName): Boolean { if (internalName.startsWith("TURBO_")) return true - if (internalName == "PURPLE_CANDY") return true - if (internalName == "JACOBS_TICKET") return true - if (internalName == "RAW_SOULFLOW") return true - if (internalName == "DERELICT_ASHE") return true + if (internalName.equals("PURPLE_CANDY")) return true + if (internalName.equals("JACOBS_TICKET")) return true + if (internalName.equals("RAW_SOULFLOW")) return true + if (internalName.equals("DERELICT_ASHE")) return true if (internalName.contains(";")) return true |