|
|
@ -192,7 +192,7 @@ public class WorkOrder implements Delayed { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
int remainingAmount = workOrder.production_cost_total.get(mbEnums.ResourceType.GOLD) - strongbox; |
|
|
|
int remainingAmount = workOrder.production_cost_total.get(mbEnums.ResourceType.GOLD) - strongbox; |
|
|
|
workOrder.vendor.building.setStrongboxValue(0); |
|
|
|
workOrder.vendor.building.setStrongboxValue(0); |
|
|
|
workOrder.production_cost_total.put(mbEnums.ResourceType.GOLD, workOrder.production_cost_total.put(mbEnums.ResourceType.GOLD, workOrder.production_cost_total.get(mbEnums.ResourceType.GOLD) - remainingAmount)); |
|
|
|
workOrder.production_cost_total.put(mbEnums.ResourceType.GOLD, workOrder.production_cost_total.get(mbEnums.ResourceType.GOLD) - remainingAmount); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// There is an overflow at this point and a warehouse is required
|
|
|
|
// There is an overflow at this point and a warehouse is required
|
|
|
|