From 78f833158275ea1919406b14897f572730ecc80b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 18 Apr 2024 21:46:11 -0500 Subject: [PATCH] potion cost bug --- src/engine/net/client/ClientMessagePump.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/net/client/ClientMessagePump.java b/src/engine/net/client/ClientMessagePump.java index d4202f25..689bcfb5 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -1420,10 +1420,14 @@ public class ClientMessagePump implements NetMsgHandler { float profit = npc.getSellPercent(sourcePlayer) - bargain; + if(me.getItemBase().getType().equals(ItemType.POTION)) + profit -= 1.0f; + if (profit < 1) profit = 1; + cost *= profit;