Track items and their workorders.
This commit is contained in:
@@ -49,6 +49,8 @@ public enum ForgeManager implements Runnable {
|
|||||||
if (workOrder.total_to_produce == 0) {
|
if (workOrder.total_to_produce == 0) {
|
||||||
|
|
||||||
workOrder.runCompleted = true;
|
workOrder.runCompleted = true;
|
||||||
|
workOrder.vendor.workOrders.remove(workOrder);
|
||||||
|
|
||||||
Logger.info("Workorder has completed: " + workOrder.workOrderID);
|
Logger.info("Workorder has completed: " + workOrder.workOrderID);
|
||||||
// Remove this workOrder from any slots on vendor
|
// Remove this workOrder from any slots on vendor
|
||||||
|
|
||||||
@@ -85,6 +87,7 @@ public enum ForgeManager implements Runnable {
|
|||||||
|
|
||||||
workOrder.total_to_produce = Math.max(1, workOrder.total_to_produce);
|
workOrder.total_to_produce = Math.max(1, workOrder.total_to_produce);
|
||||||
|
|
||||||
|
workOrder.vendor.workOrders.add(workOrder);
|
||||||
workOrders.add(workOrder);
|
workOrders.add(workOrder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ public class NPC extends AbstractCharacter {
|
|||||||
public int parentZoneUUID;
|
public int parentZoneUUID;
|
||||||
public int equipmentSetID = 0;
|
public int equipmentSetID = 0;
|
||||||
private int repairCost = 5;
|
private int repairCost = 5;
|
||||||
ArrayList<WorkOrder> workOrders = new ArrayList<>();
|
public ArrayList<WorkOrder> workOrders = new ArrayList<>();
|
||||||
|
|
||||||
// New NPC constructor. Fill in the blanks and then call
|
// New NPC constructor. Fill in the blanks and then call
|
||||||
// PERSIST.
|
// PERSIST.
|
||||||
|
|||||||
Reference in New Issue
Block a user