potion cost bug
This commit is contained in:
@@ -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