StaticResearch

StaticResearch

class

Research base class

  • read-only Assigning to the field raises an error.

Fields

NameTypeDescription
label Loc Localized research name
description_parts Loc[] Localized description paragraphs
complexity integer Science the research costs to complete
level integer Level reached by an upgrade research, 0 for a node completed once
tier integer Progression tier the research belongs to
required_research StaticResearch[] Researches that must be complete before this one opens
completed read-only boolean Whether the research is already complete
Standard members (4)

Every class of this kind carries these.

StaticResearch.cast(object) Trying to cast Object into StaticResearch
StaticResearch.get_class() Return StaticResearch class object
StaticResearch.find(name) Looks StaticResearch up in db, nil when there is none
StaticResearch.get(name) Takes StaticResearch from db, reports a miss to the log
Inherited from Prototype (2)
Inherited from Object (1)

Subclasses