From 149630ef5aad014bff1e33901e5d1e0d56c14167 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 18 Feb 2024 17:20:49 -0600 Subject: [PATCH] resource merchant work --- src/engine/objects/Item.java | 2 +- src/engine/server/world/WorldServer.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Item.java b/src/engine/objects/Item.java index cc74c165..9bb21a13 100644 --- a/src/engine/objects/Item.java +++ b/src/engine/objects/Item.java @@ -61,7 +61,7 @@ public class Item extends AbstractWorldObject { private ArrayList enchants = new ArrayList<>(); private long dateToUpgrade; private String customName = ""; - private int magicValue; + public int magicValue; /** * No Id Constructor diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index 7b82074e..ea4778ef 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -663,6 +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); resourceMerchant.getCharItemManager().addItemToInventory(resource); } }