fix resource merchant margins

This commit is contained in:
2024-06-15 16:02:07 -05:00
parent f27a4f174b
commit 846b8a7cde
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -1409,8 +1409,8 @@ public class ClientMessagePump implements NetMsgHandler {
int cost = me.getMagicValue();
int amountResource = 0;
if(ib.getType().equals(ItemType.RESOURCE) && npc.contractUUID == 900){ //resource merchant
amountResource = 3000000 / (ib.getBaseValue() * 2);
cost = amountResource * (ib.getBaseValue() * 2);
amountResource = 15000000 / (ib.getBaseValue());
cost = amountResource * (ib.getBaseValue());
}
float bargain = sourcePlayer.getBargain();