Factorio API Docs

1.1.62 <>

Class LuaTechnologyPrototype

A Technology prototype.

help()
string

All methods and properties that this object supports.


:: string
[R]

Name of this technology.


[R]

Localised name of this technology.



:: boolean
[R]

If this technology prototype is enabled by default (enabled at the beginning of a game).


:: boolean
[R]

If this technology prototype is hidden.


:: boolean
[R]

If this technology will be visible in the research GUI even though it is disabled.


:: boolean
[R]

If this technology ignores the technology cost multiplier setting.


:: boolean
[R]

If the is technology prototype is an upgrade to some other technology.


:: dictionary[stringLuaTechnologyPrototype]
[R]

Prerequisites of this technology.


:: array[Ingredient]
[R]

The types of ingredients that labs will require to research this technology.


:: array[TechnologyModifier]
[R]

Effects applied when this technology is researched.


:: uint
[R]

The number of research units required for this technology.


:: double
[R]

Amount of energy required to finish a unit of research.


:: string
[R]

The string used to alphabetically sort these prototypes.


:: uint
[R]

The level of this research.


:: uint
[R]

The max level of this research.


:: string?
[R]

The count formula used for this infinite research.


:: boolean
[R]

Is this object valid?


:: string
[R]

The class name of this object.

Methods

help() → string

All methods and properties that this object supports.

Attributes

name :: string [Read]

Name of this technology.


localised_name :: LocalisedString [Read]

Localised name of this technology.


localised_description :: LocalisedString [Read]


enabled :: boolean [Read]

If this technology prototype is enabled by default (enabled at the beginning of a game).


hidden :: boolean [Read]

If this technology prototype is hidden.


visible_when_disabled :: boolean [Read]

If this technology will be visible in the research GUI even though it is disabled.


ignore_tech_cost_multiplier :: boolean [Read]

If this technology ignores the technology cost multiplier setting.

Note

LuaTechnologyPrototype::research_unit_count will already take this setting into account.


upgrade :: boolean [Read]

If the is technology prototype is an upgrade to some other technology.


prerequisites :: dictionary[stringLuaTechnologyPrototype] [Read]

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


research_unit_ingredients :: array[Ingredient] [Read]

The types of ingredients that labs will require to research this technology.


effects :: array[TechnologyModifier] [Read]

Effects applied when this technology is researched.


research_unit_count :: uint [Read]

The number of research units required for this technology.

Note

This is multiplied by the current research cost multiplier, unless LuaTechnologyPrototype::ignore_tech_cost_multiplier is true.


research_unit_energy :: double [Read]

Amount of energy required to finish a unit of research.


order :: string [Read]

The string used to alphabetically sort these prototypes. It is a simple string that has no additional semantic meaning.


level :: uint [Read]

The level of this research.


max_level :: uint [Read]

The max level of this research.


research_unit_count_formula :: string? [Read]

The count formula used for this infinite research. nil if this research isn't infinite.


valid :: boolean [Read]

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.


object_name :: string [Read]

The class name of this object. Available even when valid is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.

|<

Classes

Events

Concepts

Defines

Builtin types

>|