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); } }