From e1d11d5d9486c2baeb204959eaf9bc733e14a231 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 6 Jun 2024 15:14:35 -0500 Subject: [PATCH] server to sell resources at correct costs --- src/engine/net/client/ClientMessagePump.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/net/client/ClientMessagePump.java b/src/engine/net/client/ClientMessagePump.java index 96a4912f..e6b6edcb 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -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){