From ac347db0c8367dc330eb9a75f90949494926ccf6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 20 Apr 2024 13:05:19 -0400 Subject: [PATCH] debitWorkOrderCost method created --- src/engine/gameManager/ForgeManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 989b5cab..7ca3ca0d 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -123,7 +123,8 @@ public enum ForgeManager implements Runnable { // Deduct gold cost from building - debitWorkOrderCost(workOrder); + if (debitWorkOrderCost(workOrder) == false) + return 58; //58: The formula is beyond the means of this facility // Create in-memory items and add to collections