From 9e7a8bef4a098c0bc8a3b1fb5b5d3fd033fabe54 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 18 Feb 2024 17:38:57 -0600 Subject: [PATCH] resource merchant work --- src/engine/net/client/ClientMessagePump.java | 2 +- src/engine/server/world/WorldServer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/net/client/ClientMessagePump.java b/src/engine/net/client/ClientMessagePump.java index e12876a3..af9ad608 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -1586,7 +1586,7 @@ public class ClientMessagePump implements NetMsgHandler { DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); if(npc.getName().equals("Resource Merchant")){ MobLoot resource = new MobLoot(npc,ItemBase.getItemBase(buy.getItemBaseID()), 1, true); - resource.magicValue = Warehouse.getCostForResource(buy.getItemBaseID()); + resource.setValue(Warehouse.getCostForResource(buy.getItemBaseID())); npc.getCharItemManager().addItemToInventory(resource); } itemMan.updateInventory(); diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index ea4778ef..c18e4953 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -663,7 +663,7 @@ public class WorldServer { if(resourceID == 7 || resourceID == 1580021) continue; MobLoot resource = new MobLoot(resourceMerchant,ItemBase.getItemBase(resourceID), 1, true); - resource.magicValue = Warehouse.getCostForResource(resourceID); + resource.setValue(Warehouse.getCostForResource(resourceID)); resourceMerchant.getCharItemManager().addItemToInventory(resource); } }