diff --git a/plan.py b/plan.py index aa66ba2..3d62700 100755 --- a/plan.py +++ b/plan.py @@ -84,8 +84,8 @@ def main(): # highest conveyor belt capacity. for name, rate in required_items.items(): print(name, rate, float(rate * 60)) - if rate * 60 > 780: - print("Rate exceeds mk5 conveyor") + if rate * 60 > conveyor_rates[-1]: + print("Rate exceeds max conveyor") # Calculate the number of machines required to build each item at the # calculated rates.