From 1f863d0ccee0254af72920258c85e4c56349d5bf Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 3 Jul 2024 20:20:04 -0500 Subject: [PATCH] resource pricing fix --- 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 c019874e..8694d9df 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -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) {