From 32d71d72d1ebc45bf3d16e76eaeb3b6d2888f26e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 21 Oct 2023 07:56:01 -0400 Subject: [PATCH] Collection for work orders defined --- src/engine/objects/NPC.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index bfb64654..db6d9f51 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -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; 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 { private final ArrayList rolling = new ArrayList<>(); public ReentrantReadWriteLock minionLock = new ReentrantReadWriteLock(); public ArrayList forgedItems = new ArrayList<>(); + + public CopyOnWriteArrayList workOrders = new CopyOnWriteArrayList(); public HashMap equip = null; public int runeSetID = 0; public int extraRune2 = 0;