StaticResearchRecipe

StaticResearchRecipe

class

Research unlocking a set of recipes

Fields

NameTypeDescription
recipe_unlocks Recipe[] Recipes this research unlocks

Functions

StaticResearchRecipe:unlocks(recipe)

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)

Generated for every class of this kind by the game's codegen, not written for StaticResearchRecipe.

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) Register a new StaticResearchRecipe static object
Inherited from StaticResearch (6)
  • 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
  • required_research Researches that must be complete before this one opens
  • completed Whether the research is already complete
Inherited from Prototype (2)
Inherited from Object (1)