Skip to content

Commit

Permalink
changed order
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Aug 1, 2024
1 parent 8a281cd commit 055e1b4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/java/at/hannibal2/skyhanni/utils/ItemPriceUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package at.hannibal2.skyhanni.utils

import at.hannibal2.skyhanni.features.inventory.bazaar.BazaarApi.getBazaarData
import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName
import at.hannibal2.skyhanni.utils.ItemUtils.itemName
import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName
import at.hannibal2.skyhanni.utils.NEUItems.getItemStackOrNull
import at.hannibal2.skyhanni.utils.NEUItems.getLowestBinOrNull
Expand All @@ -19,24 +20,29 @@ object ItemPriceUtils {
return
}


val defaultPrice = internalName.getPrice().addSeparators()
ChatUtils.chat("${internalName.itemName}§f: §6$defaultPrice")

println("")
println(" Debug Item Price for $internalName ")
println("defaultPrice: $defaultPrice")

val defaultPrice = internalName.getPrice()
println("defaultPrice: ${defaultPrice.addSeparators()}")
println(" #")
for (source in ItemPriceSource.values()) {
val price = internalName.getPrice(source)
println("${source.displayName} price: ${price.addSeparators()}")
}
println(" #")

println(" ")
println("getLowestBinOrNull: ${internalName.getLowestBinOrNull()?.addSeparators()}")

internalName.getBazaarData().let {
println("getBazaarData sellOfferPrice: ${it?.sellOfferPrice?.addSeparators()}")
println("getBazaarData instantBuyPrice: ${it?.instantBuyPrice?.addSeparators()}")
}

println("getNpcPriceOrNull: ${internalName.getNpcPriceOrNull()?.addSeparators()}")
println("getRawCraftCostOrNull: ${internalName.getRawCraftCostOrNull()?.addSeparators()}")
println(" ")
Expand Down

0 comments on commit 055e1b4

Please sign in to comment.