diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-09 10:19:40 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-09 10:19:40 +0200 |
commit | ffcfa1f6ed831817be918d3bbb42d87088f0bf5d (patch) | |
tree | 656f45431b2f8bb07fff0a39c92cdd58a98b04df /src/main/java | |
parent | a8222b7fcde5427fc8caaff71fe97d071188ecb0 (diff) | |
download | skyhanni-ffcfa1f6ed831817be918d3bbb42d87088f0bf5d.tar.gz skyhanni-ffcfa1f6ed831817be918d3bbb42d87088f0bf5d.tar.bz2 skyhanni-ffcfa1f6ed831817be918d3bbb42d87088f0bf5d.zip |
spelling
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt index 0577c05e9..d3a433e86 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt @@ -154,7 +154,7 @@ object NEUItems { fun getInternalNameOrNull(nbt: NBTTagCompound): NEUInternalName? = ItemResolutionQuery(manager).withItemNBT(nbt).resolveInternalName()?.asInternalName() - fun NEUInternalName.getPrice(useSellingPrice: Boolean = false) = getPriceOrNull(useSellingPrice) ?: -1.0 + fun NEUInternalName.getPrice(useSellPrice: Boolean = false) = getPriceOrNull(useSellPrice) ?: -1.0 fun NEUInternalName.getNpcPrice() = getNpcPriceOrNull() ?: -1.0 @@ -168,20 +168,20 @@ object NEUItems { fun transHypixelNameToInternalName(hypixelId: String): NEUInternalName = manager.auctionManager.transformHypixelBazaarToNEUItemId(hypixelId).asInternalName() - fun NEUInternalName.getPriceOrNull(useSellingPrice: Boolean = false): Double? { + fun NEUInternalName.getPriceOrNull(useSellPrice: Boolean = false): Double? { if (this == NEUInternalName.WISP_POTION) { return 20_000.0 } getBazaarData()?.let { - return if (useSellingPrice) it.sellOfferPrice else it.instantBuyPrice + return if (useSellPrice) it.sellOfferPrice else it.instantBuyPrice } val result = manager.auctionManager.getLowestBin(asString()) if (result != -1L) return result.toDouble() if (equals("JACK_O_LANTERN")) { - return "PUMPKIN".asInternalName().getPrice(useSellingPrice) + 1 + return "PUMPKIN".asInternalName().getPrice(useSellPrice) + 1 } if (equals("GOLDEN_CARROT")) { // 6.8 for some players |