reload() | Reload this technology from its prototype. |
valid :: boolean [R] | Is this object valid? |
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. |
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 string → LuaTechnology [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. |
One research item.
Reload this technology from its prototype.
Is this object valid? This Lua object holds a reference to an object within
the game engine. It is possible that the game-engine object is removed whilst
a mod still holds the corresponding Lua object. If that happens, the object
becomes invalid, i.e. this attribute will be false
. Mods are advised to
check for object validity if any change to the game state might have occurred
between the creation of the Lua object and its access.
The force this technology blongs to.
Name of this technology.
Localised name of this technology.
Can this technology be researched?
Is this an upgrade-type research?
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 of this technology. The result maps technology name to the LuaTechnology object.
Ingredients labs will require to research this technology.
Effects applied when this technology is researched.
Number of research units required for this technology.
Amount of energy required to finish a unit of research.
Order string for this prototype.