aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-21 14:24:56 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-21 14:24:56 +0100
commitd6942265ddfc2f116c39387095b004d4c8ba870a (patch)
tree5769a181981876c9bb7a70e8666bf3cdb0634614 /src/main/java/at/hannibal2
parentbda63cf7205c49a6e2b47409abcbe6d7023453c8 (diff)
downloadskyhanni-d6942265ddfc2f116c39387095b004d4c8ba870a.tar.gz
skyhanni-d6942265ddfc2f116c39387095b004d4c8ba870a.tar.bz2
skyhanni-d6942265ddfc2f116c39387095b004d4c8ba870a.zip
Copy Underbid price supports setting stack size of more than one at once.
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/items/AuctionHouseCopyUnderbidPrice.kt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/AuctionHouseCopyUnderbidPrice.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/AuctionHouseCopyUnderbidPrice.kt
index 11a51749e..23e5d4754 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/AuctionHouseCopyUnderbidPrice.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/AuctionHouseCopyUnderbidPrice.kt
@@ -23,13 +23,14 @@ class AuctionHouseCopyUnderbidPrice {
val internalName = item.getInternalName()
if (internalName == NEUInternalName.NONE) return
- val price = internalName.getPrice().toLong() - 1
+ val price = internalName.getPrice().toLong()
if (price <= 0) {
OSUtils.copyToClipboard("")
return
}
- OSUtils.copyToClipboard("$price")
- LorenzUtils.chat("Set §e${price.addSeparators()} §eto clipboard. (Copy Underbid Price)")
+ val newPrice = price * item.stackSize - 1
+ OSUtils.copyToClipboard("$newPrice")
+ LorenzUtils.chat("Set §e${newPrice.addSeparators()} §eto clipboard. (Copy Underbid Price)")
}
fun isEnabled() = LorenzUtils.inSkyBlock && config.copyUnderbidPrice