StaticResearchToolUnlock

StaticResearchToolUnlock

class

Research unlocking a player tool

  • 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

NameTypeDescription
tool read-only StaticItem Tool this research puts in the tool belt
Standard members (5)

Every class of this kind carries these.

StaticResearchToolUnlock.cast(object) Trying to cast Object into StaticResearchToolUnlock
StaticResearchToolUnlock.get_class() Return StaticResearchToolUnlock class object
StaticResearchToolUnlock.find(name) Looks StaticResearchToolUnlock up in db, nil when there is none
StaticResearchToolUnlock.get(name) Takes StaticResearchToolUnlock from db, reports a miss to the log
StaticResearchToolUnlock.reg(name) load-only Register a new StaticResearchToolUnlock 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)
Inherited from Object (1)