potion cost bug

This commit is contained in:
2024-04-18 21:46:11 -05:00
parent c197a385c5
commit 78f8331582
@@ -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;