potion cost bug
This commit is contained in:
1 parent
c197a385c5
commit
78f8331582
1 file changed
+4
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user