Comment cleanup

This commit is contained in:
2024-04-25 09:22:50 -04:00
parent a3a30f3f8a
commit 9850b54981
3 changed files with 20 additions and 7 deletions
+13 -1
View File
@@ -31,6 +31,15 @@ import java.util.concurrent.TimeUnit;
public class WorkOrder implements Delayed {
// MB Dev notes:
// Class defines a Forge rolling request made through a
// vendor and then passed to the ForgeManager singleton
// for completion.
//
// A workOrder once created will last until all items are
// either completed or junked. They are persisted in the
// table dyn_workorders.
public int workOrderID;
public NPC vendor;
public int slots_used;
@@ -133,6 +142,9 @@ public class WorkOrder implements Delayed {
public static int validate(WorkOrder workOrder) {
// Validate that a workOrder can be completed by both
// the vendor and the forge.
int validation_result = 0;
ItemTemplate template = ItemTemplate.templates.get(workOrder.templateID);
@@ -158,7 +170,7 @@ public class WorkOrder implements Delayed {
return validation_result;
}
public static boolean debitWorkOrderCost(WorkOrder workOrder) {
public static boolean withdrawWorkOrderCost(WorkOrder workOrder) {
if (workOrder.vendor.building.getCity() == null)
return false;