From 8d7d3227cbe986a9b3644d5b9973127a362e3945 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 23 Apr 2024 13:15:15 -0400 Subject: [PATCH] Update to submit logging --- src/engine/gameManager/ForgeManager.java | 1 + src/engine/loot/WorkOrder.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 76b95410..f095dd8a 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -162,6 +162,7 @@ public enum ForgeManager implements Runnable { } finally { city.transactionLock.writeLock().unlock(); } + Logger.info(workOrder.toString()); return validation_result; } diff --git a/src/engine/loot/WorkOrder.java b/src/engine/loot/WorkOrder.java index b10addfb..fc4e8a33 100644 --- a/src/engine/loot/WorkOrder.java +++ b/src/engine/loot/WorkOrder.java @@ -158,7 +158,9 @@ public class WorkOrder implements Delayed { "rollingDuration: " + duration + "\r\n" + "completionTime: " + localDateTime + "\r\n" + "runCompleted: " + this.runCompleted + "\r\n" + - "runCanceled: " + this.runCanceled + "\r\n"; + "runCanceled: " + this.runCanceled + "\r\n" + + "productionCost: " + this.production_cost.toString() + "\r\n" + + "totalProductionCost:: " + this.production_cost_total.toString(); return outSTring; }