/tg/ Station 13 - Modules - TypesVar Details - Proc Details

crafting_recipe

Vars

always_availableSet to FALSE if it needs to be learned first.
blacklisttype paths of items explicitly not allowed as an ingredient
categorywhere it shows up in the crafting UI
chem_catalystslike tool_behaviors but for reagents
machineryRequired machines for the craft, set the assigned value of the typepath to CRAFTING_MACHINERY_CONSUME or CRAFTING_MACHINERY_USE. Lazy associative list: type_path key -> flag value.
namein-game display name
non_craftableWhether the result can be crafted with a crafting menu button
one_per_turfShould only one object exist on the same turf?
partstype paths of items that will be placed in the result
reactionChemical reaction described in the recipe
reqstype paths of items consumed associated with how many are needed
resulttype path of item resulting from this craft
result_amountResulting amount (for stacks only)
stepsSteps needed to achieve the result
structuresRequired structures for the craft, set the assigned value of the typepath to CRAFTING_STRUCTURE_CONSUME or CRAFTING_STRUCTURE_USE. Lazy associative list: type_path key -> flag value.
timetime in seconds. Remember to use the SECONDS define!
tool_behaviorsString defines of items needed but not consumed. Lazy list.
tool_pathsType paths of items needed but not consumed. Lazy list.

Procs

atmos_pipe_checkCheck if the pipe used for atmospheric device crafting is the proper one
check_requirementsRun custom pre-craft checks for this recipe, don't add feedback messages in this because it will spam the client

Var Details

always_available

Set to FALSE if it needs to be learned first.

blacklist

type paths of items explicitly not allowed as an ingredient

category

where it shows up in the crafting UI

chem_catalysts

like tool_behaviors but for reagents

machinery

Required machines for the craft, set the assigned value of the typepath to CRAFTING_MACHINERY_CONSUME or CRAFTING_MACHINERY_USE. Lazy associative list: type_path key -> flag value.

name

in-game display name

non_craftable

Whether the result can be crafted with a crafting menu button

one_per_turf

Should only one object exist on the same turf?

parts

type paths of items that will be placed in the result

reaction

Chemical reaction described in the recipe

reqs

type paths of items consumed associated with how many are needed

result

type path of item resulting from this craft

result_amount

Resulting amount (for stacks only)

steps

Steps needed to achieve the result

structures

Required structures for the craft, set the assigned value of the typepath to CRAFTING_STRUCTURE_CONSUME or CRAFTING_STRUCTURE_USE. Lazy associative list: type_path key -> flag value.

time

time in seconds. Remember to use the SECONDS define!

tool_behaviors

String defines of items needed but not consumed. Lazy list.

tool_paths

Type paths of items needed but not consumed. Lazy list.

Proc Details

atmos_pipe_check

Check if the pipe used for atmospheric device crafting is the proper one

check_requirements

Run custom pre-craft checks for this recipe, don't add feedback messages in this because it will spam the client

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.