recipe_tracker 
A recipe tracker is an abstract representation of the progress that a cooking container has made towards any of its possible recipe outcomes.
When items are added/steps are performed on a cooking container, the tracker is responsible for determining what known recipes are possible after the step occurs, and tracking whether or not the step was successful. Once a step has been performed that ends a recipe and is successful, the tracker coordinates with the winning recipe to create the result, using what it knows about the steps performed to choose the quality and other attributes of the output.
Vars | |
container_uid | The parent object holding the recipe tracker. |
---|---|
recipe_started | Tells if steps have been taken for this recipe. |
recipes_all_applied_steps | A list of recipe types to list of step indices we know we've performed. Ensures we don't perform e.g. optional steps we skipped on completion. |
recipes_applied_step_data | A list of recipe types to metadata returned from completing its steps. This may include things like a custom message shown to the player, or the UID of relevant items used for determining quality at recipe completion. |
recipes_last_completed_step | A list of recipe types to the index of the latest step we know we've gotten to. |
Procs | |
process_item | Core function that checks if a object meets all the requirements for certain recipe actions. |
process_item_wrap | Wrapper function for analyzing process_item internally. |
Var Details
container_uid 
The parent object holding the recipe tracker.
recipe_started 
Tells if steps have been taken for this recipe.
recipes_all_applied_steps 
A list of recipe types to list of step indices we know we've performed. Ensures we don't perform e.g. optional steps we skipped on completion.
recipes_applied_step_data 
A list of recipe types to metadata returned from completing its steps. This may include things like a custom message shown to the player, or the UID of relevant items used for determining quality at recipe completion.
recipes_last_completed_step 
A list of recipe types to the index of the latest step we know we've gotten to.
Proc Details
process_item
Core function that checks if a object meets all the requirements for certain recipe actions.
process_item_wrap
Wrapper function for analyzing process_item internally.