From 980dee2e146485cf2c63882d3c37ece53256e9c3 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 13 Apr 2024 08:31:36 -0400 Subject: [PATCH] Work on multiple slot support --- src/engine/loot/WorkOrder.java | 1 + src/engine/net/client/handlers/ItemProductionMsgHandler.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/engine/loot/WorkOrder.java b/src/engine/loot/WorkOrder.java index d301df3d..0eee7b81 100644 --- a/src/engine/loot/WorkOrder.java +++ b/src/engine/loot/WorkOrder.java @@ -28,6 +28,7 @@ public class WorkOrder implements Delayed { public int slots_used; public int total_to_produce; public int total_produced; + public int msg_size; public HashMap production_cost = new HashMap<>(); public HashMap production_cost_total = new HashMap<>(); public int templateID; diff --git a/src/engine/net/client/handlers/ItemProductionMsgHandler.java b/src/engine/net/client/handlers/ItemProductionMsgHandler.java index 67cbf5b7..16df9139 100644 --- a/src/engine/net/client/handlers/ItemProductionMsgHandler.java +++ b/src/engine/net/client/handlers/ItemProductionMsgHandler.java @@ -87,6 +87,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler { workOrder.suffixToken = msg.sToken; workOrder.item_name_override = msg.name; workOrder.slots_used = 0; + workOrder.msg_size = msg.size; // Validate vendor can roll this item