From 7fefd53be208d38ce924b1d1a60222685d33eb0a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 22 Feb 2024 19:27:14 -0600 Subject: [PATCH] Resource Merchant --- src/engine/server/world/WorldServer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index caace09e..4bff1eba 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -678,9 +678,11 @@ public class WorldServer { }else{ if(resourceMerchant != null){ for(int resourceID : Warehouse.getMaxResources().keySet()){ - MobLoot resource = new MobLoot(resourceMerchant,ItemBase.getItemBase(resourceID),1,false); + //MobLoot resource = new MobLoot(resourceMerchant,ItemBase.getItemBase(resourceID),1,false); + //resource.magicValue = Warehouse.getCostForResource(resourceID); + MobEquipment resource = new MobEquipment(resourceID,100.0f); resource.magicValue = Warehouse.getCostForResource(resourceID); - resourceMerchant.getInventory().add(resource); + resourceMerchant.contract.getSellInventory().add(resource); } resourceMerchant.sellPercent = 0.0f; resourceMerchant.setName("Stocky the Resource Merchant");