plan: use conveyor_rates rather than hard coded values
This commit is contained in:
parent
a6a7594eda
commit
4b79715b16
4
plan.py
4
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.
|
||||
|
Loading…
Reference in New Issue
Block a user