Browse Source

workerOrder cost updating

combat-2
MagicBot 9 months ago
parent
commit
97e0ada1a9
  1. 2
      src/engine/gameManager/ForgeManager.java

2
src/engine/gameManager/ForgeManager.java

@ -141,7 +141,7 @@ public enum ForgeManager implements Runnable {
public static long calcRollingDuration(WorkOrder workOrder) { public static long calcRollingDuration(WorkOrder workOrder) {
long rollingDuration; long rollingDuration;
float rate = (float) (2.5 * (workOrder.vendor.getBuilding().getRank() - 1)); float rate = (float) 2.5 * (workOrder.vendor.getBuilding().getRank() - 1);
float baseTime = (20 - rate) * 60000; float baseTime = (20 - rate) * 60000;
ItemTemplate template = ItemTemplate.templates.get(workOrder.templateID); ItemTemplate template = ItemTemplate.templates.get(workOrder.templateID);

Loading…
Cancel
Save