Goonstation 13 - Modules - TypesVar Details - Proc Details

/datum/material_recipe

material recipie definition

Vars

result_idID of the result material. used as fallback or when you do not want to use a result item.
result_itemPath of the resulting material item.

Procs

apply_toIf no result id or result items are defined, this proc will be executed on the material. Do this if you want a recipe to just modifiy a material.
apply_to_objcalled with the resultant item from the recipe as argument. Use this if you want to say, print a message when a recipe is made.
validateThis checks if the recipe applies to the given result material.

Var Details

result_id

ID of the result material. used as fallback or when you do not want to use a result item.

result_item

Path of the resulting material item.

Proc Details

apply_to

If no result id or result items are defined, this proc will be executed on the material. Do this if you want a recipe to just modifiy a material.

apply_to_obj

called with the resultant item from the recipe as argument. Use this if you want to say, print a message when a recipe is made.

validate

This checks if the recipe applies to the given result material.

This is a proc so you can do practically anything for recipes.

Want a recipe that only applies to wool + erebite composites and only if they have a high temperature resistance? You can.

Try to keep these cheap if you can.