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.
|
# highest conveyor belt capacity.
|
||||||
for name, rate in required_items.items():
|
for name, rate in required_items.items():
|
||||||
print(name, rate, float(rate * 60))
|
print(name, rate, float(rate * 60))
|
||||||
if rate * 60 > 780:
|
if rate * 60 > conveyor_rates[-1]:
|
||||||
print("Rate exceeds mk5 conveyor")
|
print("Rate exceeds max conveyor")
|
||||||
|
|
||||||
# Calculate the number of machines required to build each item at the
|
# Calculate the number of machines required to build each item at the
|
||||||
# calculated rates.
|
# calculated rates.
|
||||||
|
Loading…
Reference in New Issue
Block a user