fix resource merchant margins

This commit is contained in:
FatBoy committed 2024-06-15 16:02:07 -05:00
1 parent f27a4f174b
commit 846b8a7cde
2 files changed
+6 -4

No files matched your search

+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();