Browse Source

resource pricing fix

lakebane-new
FatBoy-DOTC 4 months ago
parent
commit
1f863d0cce
  1. 2
      src/engine/net/client/ClientMessagePump.java

2
src/engine/net/client/ClientMessagePump.java

@ -1409,7 +1409,7 @@ public class ClientMessagePump implements NetMsgHandler {
if (profit < 1) if (profit < 1)
profit = 1; profit = 1;
if(npc.getContractID() == 900){ if(npc.getContractID() == 900){
cost = Warehouse.getCostForResource(ib.getUUID()) * Warehouse.getSellStackSize(ib.getUUID()); cost = (int)(Warehouse.getCostForResource(ib.getUUID()) * Warehouse.getSellStackSize(ib.getUUID()) * 0.5f);
} }
cost *= profit; cost *= profit;
if (gold.getNumOfItems() - cost < 0) { if (gold.getNumOfItems() - cost < 0) {

Loading…
Cancel
Save