Browse Source

Work on multiple slot support

combat-2
MagicBot 7 months ago
parent
commit
980dee2e14
  1. 1
      src/engine/loot/WorkOrder.java
  2. 1
      src/engine/net/client/handlers/ItemProductionMsgHandler.java

1
src/engine/loot/WorkOrder.java

@ -28,6 +28,7 @@ public class WorkOrder implements Delayed {
public int slots_used; public int slots_used;
public int total_to_produce; public int total_to_produce;
public int total_produced; public int total_produced;
public int msg_size;
public HashMap<mbEnums.ResourceType, Integer> production_cost = new HashMap<>(); public HashMap<mbEnums.ResourceType, Integer> production_cost = new HashMap<>();
public HashMap<mbEnums.ResourceType, Integer> production_cost_total = new HashMap<>(); public HashMap<mbEnums.ResourceType, Integer> production_cost_total = new HashMap<>();
public int templateID; public int templateID;

1
src/engine/net/client/handlers/ItemProductionMsgHandler.java

@ -87,6 +87,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
workOrder.suffixToken = msg.sToken; workOrder.suffixToken = msg.sToken;
workOrder.item_name_override = msg.name; workOrder.item_name_override = msg.name;
workOrder.slots_used = 0; workOrder.slots_used = 0;
workOrder.msg_size = msg.size;
// Validate vendor can roll this item // Validate vendor can roll this item

Loading…
Cancel
Save