From b1b635380a6388251061dc79e65942362111808b Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 19 Apr 2024 10:49:19 -0400 Subject: [PATCH] Completed items are identified --- src/engine/gameManager/ForgeManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 75c627fa..1cec29be 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -62,6 +62,7 @@ public enum ForgeManager implements Runnable { // Complete this workOrder. for (Item workOrderItem : workOrder.cooking) { + workOrderItem.flags.add(mbEnums.ItemFlags.Identified); ItemProductionMsg outMsg = new ItemProductionMsg(workOrder.vendor.building, workOrder.vendor, workOrderItem, mbEnums.ProductionActionType.CONFIRM_PRODUCE, true); DispatchMessage.dispatchMsgToInterestArea(workOrder.vendor, outMsg, mbEnums.DispatchChannel.SECONDARY, 700, false, false); } @@ -298,6 +299,10 @@ public enum ForgeManager implements Runnable { for (Item workOrderItem : workOrder.cooking) { + // Identify completed items + + workOrderItem.flags.add(mbEnums.ItemFlags.Identified); + // Persist item Item completedItem = DbManager.ItemQueries.PERSIST(workOrderItem);