Browse Source

server to sell resources at correct costs

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
e1d11d5d94
  1. 2
      src/engine/net/client/ClientMessagePump.java

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

@ -1415,7 +1415,7 @@ public class ClientMessagePump implements NetMsgHandler { @@ -1415,7 +1415,7 @@ public class ClientMessagePump implements NetMsgHandler {
int cost = me.magicValue;
if(npc.getContractID() == 1201 && me.getItemBase().getName().equals("Prospector"))
cost = 50;
int resourceCost = Warehouse.getCostForResource(me.getItemBase().getUUID());
int resourceCost = (Warehouse.getSellStackSize(me.getItemBase().getUUID()) * Warehouse.getCostForResource(me.getItemBase().getUUID()));
if (resourceCost != 0)
cost = resourceCost;
if(npc.contractUUID == 900 && me.getItemBase().getUUID() == 1705032){

Loading…
Cancel
Save