Browse Source

Minor class cleanup

combat-2
MagicBot 9 months ago
parent
commit
cafe0a0fe1
  1. 4
      src/engine/gameManager/ForgeManager.java
  2. 26
      src/engine/loot/WorkOrder.java

4
src/engine/gameManager/ForgeManager.java

@ -61,7 +61,7 @@ public enum ForgeManager implements Runnable {
workOrder.total_produced = workOrder.total_produced - 1; workOrder.total_produced = workOrder.total_produced - 1;
workOrders.add(workOrder); workOrders.add(workOrder);
Logger.info("Workorder has cycled: " + workOrder.workOrderID); Logger.info("workorder:" + workOrder.workOrderID + " (" + workOrder.total_produced + "/" + workOrder.total_to_produce + ")");
} catch (InterruptedException e) { } catch (InterruptedException e) {
e.printStackTrace(); e.printStackTrace();
} }
@ -83,7 +83,7 @@ public enum ForgeManager implements Runnable {
// Single item rolls are total_to_produce of 0; // Single item rolls are total_to_produce of 0;
if (workOrder.slotCount > 1 && workOrder.total_to_produce == 0) if (workOrder.slotCount > 0 && workOrder.total_to_produce == 0)
workOrder.slotCount = 1; workOrder.slotCount = 1;
Logger.info(workOrder.toString()); Logger.info(workOrder.toString());

26
src/engine/loot/WorkOrder.java

@ -54,19 +54,19 @@ public class WorkOrder implements Delayed {
} }
public String toString() { public String toString() {
String outSTring = "wordOrderID" + this.workOrderID + "\r\n" + String outSTring = "wordOrderID: " + this.workOrderID + "\r\n" +
"vendor" + this.vendor.getObjectUUID() + "\r\n" + "vendor: " + this.vendor.getObjectUUID() + "\r\n" +
"slotCount" + this.slotCount + "\r\n" + "slotCount: " + this.slotCount + "\r\n" +
"total_to_produce" + this.total_to_produce + "\r\n" + "total_to_produce: " + this.total_to_produce + "\r\n" +
"total_produced" + this.total_produced + "\r\n" + "total_produced: " + this.total_produced + "\r\n" +
"templateID" + this.templateID + "\r\n" + "templateID: " + this.templateID + "\r\n" +
"itemName" + this.itemName + "\r\n" + "itemName: " + this.itemName + "\r\n" +
"prefixToken" + this.prefixToken + "\r\n" + "prefixToken: " + this.prefixToken + "\r\n" +
"suffixToken" + this.suffixToken + "\r\n" + "suffixToken: " + this.suffixToken + "\r\n" +
"rollingDuration" + this.rollingDuration + "\r\n" + "rollingDuration: " + this.rollingDuration + "\r\n" +
"completionTime" + this.completionTime + "\r\n" + "completionTime: " + this.completionTime + "\r\n" +
"runCompleted" + this.runCompleted + "\r\n" + "runCompleted: " + this.runCompleted + "\r\n" +
"runCanceled" + this.runCanceled + "\r\n"; "runCanceled: " + this.runCanceled + "\r\n";
return outSTring; return outSTring;
} }

Loading…
Cancel
Save