From 84951244f9b9ed20f4fb31f98c4a119cb59756cc Mon Sep 17 00:00:00 2001 From: randy Date: Tue, 11 Feb 2025 11:12:39 -0700 Subject: [PATCH] Farming leprechauns now give free buckets There is no way to increase the limit past 31, but buckets are so cheap they are just an inconvenience. So now you can deposit and withraw any number of buckets, regardless of what is stored. --- .../content/global/skill/farming/ToolLeprechaunInterface.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/src/main/content/global/skill/farming/ToolLeprechaunInterface.kt b/Server/src/main/content/global/skill/farming/ToolLeprechaunInterface.kt index 29e0d719d..75fbe8f07 100644 --- a/Server/src/main/content/global/skill/farming/ToolLeprechaunInterface.kt +++ b/Server/src/main/content/global/skill/farming/ToolLeprechaunInterface.kt @@ -135,7 +135,7 @@ class ToolLeprechaunInterface : InterfaceListener { player ?: return val hasAmount = amountInInventory(player, item) var finalAmount = amount - val spaceLeft = (if (item == Items.BUCKET_1925) 31 else 255) - quantityCheckMethod.invoke(player) + val spaceLeft = (if (item == Items.BUCKET_1925) 255 else 255) - quantityCheckMethod.invoke(player) if (hasAmount == 0) { val itemName = if (item == Items.BUCKET_1925) "buckets" else getItemName(item).lowercase() @@ -183,7 +183,7 @@ class ToolLeprechaunInterface : InterfaceListener { private fun doStackedWithdrawal(player: Player?, item: Int, amount: Int, updateQuantityMethod: (Player?, Int) -> Unit, quantityCheckMethod: (Player?) -> Int) { player ?: return - val hasAmount = quantityCheckMethod.invoke(player) + val hasAmount = if (item == Items.BUCKET_1925) 31 else quantityCheckMethod.invoke(player) var finalAmount = amount if (hasAmount == 0) {