Create tasks for producing an item
JonasJurczok opened this issue · 0 comments
Items have ingredients which have ingredients...
Some items are complicated to produce and require a longer production chain.
Creating tasks for these production chains is complicated and tedious.
Sorting is required to create things in the right order.
Describe the solution you'd like
I want to pick an item from an entity select box.
Then the mod should generate tasks for this item and all its ingredients.
Assuming Item
has ingredients A
and B
I would expect three tasks
- Create Item
** Create A
** Create B - Create A
** Create A.1
** Create A.2 - Create B
** Create B.1
Additional context
Depth first search through the ingredients.
Create task for every item visited. Ingredients first.
If task with same name already exists, skip it.
Also search completed tasks to not create tasks for items that are already produced.