Configure upon submit()
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
package engine.gameManager;
|
||||
|
||||
import engine.loot.WorkOrder;
|
||||
import engine.mbEnums;
|
||||
import engine.objects.Item;
|
||||
import engine.objects.PlayerCharacter;
|
||||
import org.pmw.tinylog.Logger;
|
||||
@@ -88,6 +89,8 @@ public enum ForgeManager implements Runnable {
|
||||
workOrder.workOrderID = wordOrderCounter.incrementAndGet();
|
||||
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration;
|
||||
workOrder.slotCount = calcAvailableSlots(workOrder);
|
||||
workOrder.production_cost = calcProductionCost(workOrder);
|
||||
workOrder.rollingDuration = ForgeManager.calcRollingDuration(workOrder);
|
||||
|
||||
// Single item rolls are total_to_produce of 0;
|
||||
|
||||
@@ -144,4 +147,10 @@ public enum ForgeManager implements Runnable {
|
||||
|
||||
return availableSlots;
|
||||
}
|
||||
|
||||
public static HashMap<mbEnums.ResourceType, Integer> calcProductionCost(WorkOrder workOrder) {
|
||||
HashMap<mbEnums.ResourceType, Integer> production_cost = new HashMap<>();
|
||||
|
||||
return production_cost;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user