/datum/crafting_recipe

Vars | |
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. |
Procs | |
check_requirements | Run custom pre-craft checks for this recipe |
crafting_ui_data | Additional 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