Browse Source

resource merchant work

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
149630ef5a
  1. 2
      src/engine/objects/Item.java
  2. 1
      src/engine/server/world/WorldServer.java

2
src/engine/objects/Item.java

@ -61,7 +61,7 @@ public class Item extends AbstractWorldObject {
private ArrayList<EnchantmentBase> enchants = new ArrayList<>(); private ArrayList<EnchantmentBase> enchants = new ArrayList<>();
private long dateToUpgrade; private long dateToUpgrade;
private String customName = ""; private String customName = "";
private int magicValue; public int magicValue;
/** /**
* No Id Constructor * No Id Constructor

1
src/engine/server/world/WorldServer.java

@ -663,6 +663,7 @@ public class WorldServer {
if(resourceID == 7 || resourceID == 1580021) if(resourceID == 7 || resourceID == 1580021)
continue; continue;
MobLoot resource = new MobLoot(resourceMerchant,ItemBase.getItemBase(resourceID), 1, true); MobLoot resource = new MobLoot(resourceMerchant,ItemBase.getItemBase(resourceID), 1, true);
resource.magicValue = Warehouse.getCostForResource(resourceID);
resourceMerchant.getCharItemManager().addItemToInventory(resource); resourceMerchant.getCharItemManager().addItemToInventory(resource);
} }
} }

Loading…
Cancel
Save