Browse Source

Minor class cleanup

combat-2
MagicBot 7 months ago
parent
commit
275644ec83
  1. 2
      src/engine/gameManager/ForgeManager.java
  2. 2
      src/engine/net/client/handlers/ItemProductionMsgHandler.java

2
src/engine/gameManager/ForgeManager.java

@ -84,8 +84,10 @@ public enum ForgeManager implements Runnable { @@ -84,8 +84,10 @@ public enum ForgeManager implements Runnable {
}
public static void submit(WorkOrder workOrder) {
workOrder.workOrderID = wordOrderCounter.incrementAndGet();
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration;
workOrder.slotCount = calcAvailableSlots(workOrder);
// Single item rolls are total_to_produce of 0;

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

@ -87,7 +87,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler { @@ -87,7 +87,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
workOrder.suffixToken = msg.sToken;
workOrder.itemName = msg.name;
workOrder.rollingDuration = ForgeManager.calcRollingDuration(workOrder);
workOrder.slotCount = ForgeManager.calcAvailableSlots(workOrder);
workOrder.slotCount = 0;
// Validate vendor can roll this item

Loading…
Cancel
Save