Space Station 13 - Modules - TypesVar Details - Proc Details

recipe_step

Vars

optionalWhether or not the recipe requires this step to be performed.

Procs

attempt_autochef_performAttempt to have the autochef actually perform this step. This is during the "performance" stage of the autochef, during which other steps of the recipe may have already been performed.
attempt_autochef_prepareAttempt to see if the autochef can finish the recipe with the available resources it has. This is done in the "preparation" stage of the autochef.
check_conditions_metSee if the used_item meets the conditions for this recipe step. This will typically be something like ensuring that a recipe step for adding a specific kind of item has been passed an item of that type.
follow_stepAttempt to satisfy the requirements of this step with the object used_item being used on the cooking container that the tracker is tracking.
get_pda_formatted_descReturn a human readable description of the recipe step as an instruction to the reader.
is_completeSpecial function to check if the step has been satisfied. Sometimes just following the step is enough, but not always.

Var Details

optional

Whether or not the recipe requires this step to be performed.

Proc Details

attempt_autochef_perform

Attempt to have the autochef actually perform this step. This is during the "performance" stage of the autochef, during which other steps of the recipe may have already been performed.

attempt_autochef_prepare

Attempt to see if the autochef can finish the recipe with the available resources it has. This is done in the "preparation" stage of the autochef.

check_conditions_met

See if the used_item meets the conditions for this recipe step. This will typically be something like ensuring that a recipe step for adding a specific kind of item has been passed an item of that type.

Returns one of [PCWJ_CHECK_INVALID], [PCWJ_CHECK_VALID], PCWJ_CHECK_FULL, [PCWJ_CHECK_SILENT].

follow_step

Attempt to satisfy the requirements of this step with the object used_item being used on the cooking container that the tracker is tracking.

The return value is a list of metadata about the step used by the tracker during the preparation and final recipe creation. There is no fixed set of values to return here, and different recipe steps may return different useful keys to the tracker. One key that is returned by most steps is "message", which returns the visible message that should be shown in chat to the user when the step is followed.

get_pda_formatted_desc

Return a human readable description of the recipe step as an instruction to the reader.

is_complete

Special function to check if the step has been satisfied. Sometimes just following the step is enough, but not always.