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

materials

Vars

base_stack_recipesList of stackcrafting recipes for materials using base recipes
dimensional_themesA list of dimensional themes used by the dimensional anomaly and other things, most of which require materials to function.
material_combosA cache of all material combinations that have been used
materialids_by_categoryDictionary of category || list of material ids, mostly used by rnd machines like autolathes.
materialids_by_typeDictionary of type || list of material ids
materialsDictionary of material.id || material ref
materials_by_categoryDictionary of category || list of material refs
materials_by_typeDictionary of type || list of material refs
rigid_stack_recipesList of stackcrafting recipes for materials using rigid recipes

Procs

FindOrCreateMaterialComboReturns a list to be used as an object's custom_materials. Lists will be cached and re-used based on the parameters.
GetIdFromArguments
InitializeMaterial
InitializeMaterialsRan on initialize, populated the materials and materials_by_category dictionaries with their appropriate vars (See these variables for more info)
_GetMaterialRef

Var Details

base_stack_recipes

List of stackcrafting recipes for materials using base recipes

dimensional_themes

A list of dimensional themes used by the dimensional anomaly and other things, most of which require materials to function.

material_combos

A cache of all material combinations that have been used

materialids_by_category

Dictionary of category || list of material ids, mostly used by rnd machines like autolathes.

materialids_by_type

Dictionary of type || list of material ids

materials

Dictionary of material.id || material ref

materials_by_category

Dictionary of category || list of material refs

materials_by_type

Dictionary of type || list of material refs

rigid_stack_recipes

List of stackcrafting recipes for materials using rigid recipes

Proc Details

FindOrCreateMaterialCombo

Returns a list to be used as an object's custom_materials. Lists will be cached and re-used based on the parameters.

GetIdFromArguments

InitializeMaterial

InitializeMaterials

Ran on initialize, populated the materials and materials_by_category dictionaries with their appropriate vars (See these variables for more info)

_GetMaterialRef