Yogstation 13 - Modules - TypesVar Details - Proc Details

/datum/crafting_recipe

Vars

always_availableSet to FALSE if it needs to be learned fast.
blacklistType paths of items explicitly not allowed as an ingredient.
categoryWhere it shows up in the crafting UI.
nameIn-game display name.
one_per_turfShould only one object exist on the same turf?
partsType paths of items that will be placed in the result.
reqsType paths of items consumed associated with how many are needed.
resultType path of item resulting from this craft.
timeTime in seconds.
tool_behaviorsString defines of items needed but not consumed.
tool_pathsType paths of items needed but not consumed.

Procs

check_requirementsRun custom pre-craft checks for this recipe
crafting_ui_dataAdditional UI data to be passed to the crafting UI for this recipe

Var Details

always_available

Set to FALSE if it needs to be learned fast.

blacklist

Type paths of items explicitly not allowed as an ingredient.

category

Where it shows up in the crafting UI.

name

In-game display name.

one_per_turf

Should only one object exist on the same turf?

parts

Type paths of items that will be placed in the result.

reqs

Type paths of items consumed associated with how many are needed.

result

Type path of item resulting from this craft.

time

Time in seconds.

tool_behaviors

String defines of items needed but not consumed.

tool_paths

Type paths of items needed but not consumed.

Proc Details

check_requirements

Run custom pre-craft checks for this recipe

user: the /mob that initiated the crafting collected_requirements: A list of lists of /obj/item instances that satisfy reqs. Top level list is keyed by requirement path.

crafting_ui_data

Additional UI data to be passed to the crafting UI for this recipe