Browse Source

Class cleanup and comment fixes

combat-2
MagicBot 7 months ago
parent
commit
6cba850af5
  1. 10
      src/engine/gameManager/ForgeManager.java

10
src/engine/gameManager/ForgeManager.java

@ -103,13 +103,13 @@ public enum ForgeManager implements Runnable { @@ -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 { @@ -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;

Loading…
Cancel
Save