Browse Source

Collection for work orders defined

feature-workorder
MagicBot 1 year ago
parent
commit
32d71d72d1
  1. 4
      src/engine/objects/NPC.java

4
src/engine/objects/NPC.java

@ -17,6 +17,7 @@ import engine.gameManager.*; @@ -17,6 +17,7 @@ import engine.gameManager.*;
import engine.job.JobContainer;
import engine.job.JobScheduler;
import engine.jobs.UpgradeNPCJob;
import engine.loot.WorkOrder;
import engine.math.Bounds;
import engine.math.Vector3f;
import engine.math.Vector3fImmutable;
@ -37,6 +38,7 @@ import java.util.ArrayList; @@ -37,6 +38,7 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import static engine.net.client.msg.ErrorPopupMsg.sendErrorPopup;
@ -52,6 +54,8 @@ public class NPC extends AbstractCharacter { @@ -52,6 +54,8 @@ public class NPC extends AbstractCharacter {
private final ArrayList<MobLoot> rolling = new ArrayList<>();
public ReentrantReadWriteLock minionLock = new ReentrantReadWriteLock();
public ArrayList<ProducedItem> forgedItems = new ArrayList<>();
public CopyOnWriteArrayList<WorkOrder> workOrders = new CopyOnWriteArrayList();
public HashMap<Integer, MobEquipment> equip = null;
public int runeSetID = 0;
public int extraRune2 = 0;

Loading…
Cancel
Save