StaticResearchRecipe
classResearch unlocking a set of recipes
- read-only Assigning to the field raises an error.
- load-only Usable only while mods load. The game seals these members once loading finishes, so a call or a write from a running world raises an error.
Fields
| Name | Type | Description | |
|---|---|---|---|
| recipe_unlocks | read-only | Recipe[] | Recipes this research unlocks |
Functions
StaticResearchRecipe:unlocks(recipe) load-only
Make this research unlock a recipe; a recipe of HandRecipeDictionary also puts its output item into hand crafting
| recipe | Recipe |
returns boolean False when the recipe is null
Standard members (5)
Every class of this kind carries these.
| StaticResearchRecipe.cast(object) | Trying to cast Object into StaticResearchRecipe |
| StaticResearchRecipe.get_class() | Return StaticResearchRecipe class object |
| StaticResearchRecipe.find(name) | Looks StaticResearchRecipe up in db, nil when there is none |
| StaticResearchRecipe.get(name) | Takes StaticResearchRecipe from db, reports a miss to the log |
| StaticResearchRecipe.reg(name) load-only | Register a new StaticResearchRecipe static object |
Inherited from StaticResearch (7)
- label Localized research name
- description_parts Localized description paragraphs
- complexity Science the research costs to complete
- level Level reached by an upgrade research, 0 for a node completed once
- tier Progression tier the research belongs to
- required_research Researches that must be complete before this one opens
- completed read-only Whether the research is already complete
Inherited from Prototype (2)
- name read-only Object name
- Prototype:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (1)
- Object:get_class() Class of this object