Multiple item workOrder work

This commit is contained in:
2024-04-13 09:31:18 -04:00
parent 3c704d6b85
commit a5bcdff216
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ public enum ForgeManager implements Runnable {
// Single item rolls are msg_size of 0;
if (workOrder.slots_used > 0 && workOrder.msg_size == 0)
if (workOrder.slots_used > 0 && workOrder.multiple_slot_request == 0)
availableSlots = 1;
return availableSlots;
+1 -1
View File
@@ -28,7 +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 int multiple_slot_request;
public HashMap<mbEnums.ResourceType, Integer> production_cost = new HashMap<>();
public HashMap<mbEnums.ResourceType, Integer> production_cost_total = new HashMap<>();
public int templateID;
@@ -87,7 +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;
workOrder.multiple_slot_request = msg.size;
// Validate vendor can roll this item