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 { @@ -1409,7 +1409,7 @@ public class ClientMessagePump implements NetMsgHandler {
if (profit < 1)
profit = 1;
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;
if (gold.getNumOfItems() - cost < 0) {

Loading…
Cancel
Save