From 6cba850af58fcc09fe98291412dc31ae6c4724a2 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 20 Apr 2024 13:26:44 -0400 Subject: [PATCH] Class cleanup and comment fixes --- src/engine/gameManager/ForgeManager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 2101f3a1..b207e776 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -103,13 +103,13 @@ public enum ForgeManager implements Runnable { public static int submit(WorkOrder workOrder) { - // Make sure vendor can roll the formulae, warehouse can afford - // the wordOrder and other related checks. + // Make sure vendor can roll the formulae, warehouse can + // afford this wordOrder and other related checks. int validation_result = ItemManager.validate(workOrder); // The return code is used by the submitter as a - // popup error message to the player. + // popup error message for the player. if (validation_result != 0) return validation_result; @@ -172,12 +172,12 @@ public enum ForgeManager implements Runnable { int availableSlots = workOrder.vendor.getRank(); - // Slots currently used up by the npc workOrders + // Subtract slots currently being used by npc workOrders for (WorkOrder npcWorkOrder : ForgeManager.vendorWorkOrderLookup.get(workOrder.vendor)) availableSlots = availableSlots - npcWorkOrder.slots_used; - // Single item rolls are msg_size of 0; + // Single item rolls are always a single slot if (availableSlots > 0 && !workOrder.multiple_slot_request) availableSlots = 1;