From 74a7a255be466ad5bebee31a7b8637c33f5fbb3f Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 8 Apr 2024 04:32:04 -0400 Subject: [PATCH] Track items and their workorders. --- src/engine/objects/NPC.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 38dee29c..9e38eff3 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -15,6 +15,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; @@ -78,6 +79,7 @@ public class NPC extends AbstractCharacter { public int parentZoneUUID; public int equipmentSetID = 0; private int repairCost = 5; + ArrayList workOrders = new ArrayList<>(); // New NPC constructor. Fill in the blanks and then call // PERSIST.