forked from MagicBane/Server
potion cost bug
This commit is contained in:
@@ -1420,10 +1420,14 @@ public class ClientMessagePump implements NetMsgHandler {
|
|||||||
|
|
||||||
float profit = npc.getSellPercent(sourcePlayer) - bargain;
|
float profit = npc.getSellPercent(sourcePlayer) - bargain;
|
||||||
|
|
||||||
|
if(me.getItemBase().getType().equals(ItemType.POTION))
|
||||||
|
profit -= 1.0f;
|
||||||
|
|
||||||
if (profit < 1)
|
if (profit < 1)
|
||||||
profit = 1;
|
profit = 1;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cost *= profit;
|
cost *= profit;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user