LuaTechnology

class LuaTechnology - sort
reload() Reload this technology from its prototype.
force :: LuaForce [R] The force this technology blongs to.
name :: string [R] Name of this technology.
localised_name :: LocalisedString [R] Localised name of this technology.
localised_description :: LocalisedString [R]
prototype :: LuaTechnologyPrototype [R] The prototype of this technology.
enabled :: boolean [RW] Can this technology be researched?
upgrade :: boolean [R] Is this an upgrade-type research?
researched :: boolean [RW] Has this technology been researched?
prerequisites :: dictionary stringLuaTechnology [R] Prerequisites of this technology.
research_unit_ingredients :: array of Ingredient [R] Ingredients labs will require to research this technology.
effects :: array of Modifier [R] Effects applied when this technology is researched.
research_unit_count :: uint [R] Number of research units required for this technology.
research_unit_energy :: double [R] Amount of energy required to finish a unit of research.
order :: string [R] Order string for this prototype.
level :: uint [R] The current level of this technology.
research_unit_count_formula :: string [R] The count forumula used for this infinite research or nil if this isn't an infinite research.
valid :: boolean [R] Is this object valid?
help() → string All methods, and properties that this object supports.

One research item.

reload()

Reload this technology from its prototype.

force :: LuaForce [Read-only]

The force this technology blongs to.

name :: string [Read-only]

Name of this technology.

localised_name :: LocalisedString [Read-only]

Localised name of this technology.

localised_description :: LocalisedString [Read-only]

prototype :: LuaTechnologyPrototype [Read-only]

The prototype of this technology.

enabled :: boolean [Read-Write]

Can this technology be researched?

upgrade :: boolean [Read-only]

Is this an upgrade-type research?

researched :: boolean [Read-Write]

Has this technology been researched? Switching from false to true will trigger the technology advancement perks; switching from true to false will reverse them.

prerequisites :: dictionary stringLuaTechnology [Read-only]

Prerequisites of this technology. The result maps technology name to the LuaTechnology object.

research_unit_ingredients :: array of Ingredient [Read-only]

Ingredients labs will require to research this technology.

effects :: array of Modifier [Read-only]

Effects applied when this technology is researched.

research_unit_count :: uint [Read-only]

Number of research units required for this technology.

research_unit_energy :: double [Read-only]

Amount of energy required to finish a unit of research.

order :: string [Read-only]

Order string for this prototype.

level :: uint [Read-only]

The current level of this technology.

research_unit_count_formula :: string [Read-only]

The count forumula used for this infinite research or nil if this isn't an infinite research.