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/utils/NEUItems.kt | |
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/utils/NEUItems.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt index 6aa6fa28c..f55277e0a 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt @@ -151,16 +151,15 @@ object NEUItems { manager.auctionManager.transformHypixelBazaarToNEUItemId(hypixelId).asInternalName() fun NEUInternalName.getPrice(useSellingPrice: Boolean = false): Double { - val string = asString() - if (string == "WISP_POTION") { + if (equals("WISP_POTION")) { return 20_000.0 } - val result = manager.auctionManager.getBazaarOrBin(string, useSellingPrice) + val result = manager.auctionManager.getBazaarOrBin(asString(), useSellingPrice) if (result == -1.0) { - if (string == "JACK_O_LANTERN") { + if (equals("JACK_O_LANTERN")) { return getPrice("PUMPKIN", useSellingPrice) + 1 } - if (string == "GOLDEN_CARROT") { + if (equals("GOLDEN_CARROT")) { // 6.8 for some players return 7.0 // NPC price } @@ -177,6 +176,7 @@ object NEUItems { fun getItemStackOrNull(internalName: String) = internalName.asInternalName().getItemStackOrNull() + // TODO remove fun getItemStack(internalName: String, definite: Boolean = false): ItemStack = internalName.asInternalName().getItemStack(definite) |