Browse Source

potion cost bug

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
78f8331582
  1. 4
      src/engine/net/client/ClientMessagePump.java

4
src/engine/net/client/ClientMessagePump.java

@ -1420,10 +1420,14 @@ public class ClientMessagePump implements NetMsgHandler { @@ -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;

Loading…
Cancel
Save