LuaTechnologyPrototype

A Technology prototype.

class LuaTechnologyPrototype - sort
name :: string [R] Name of this technology.
localised_name :: LocalisedString [R] Localised name of this technology.
localised_description :: LocalisedString [R]
enabled :: boolean [R] If this technology prototype is enabled by default (enabled at the beginning of a game).
hidden :: boolean [R] If this technology prototype is hidden.
visible_when_disabled :: boolean [R] If this technology will be visible in the research GUI even though it is disabled.
ignore_tech_cost_multiplier :: boolean [R] If this technology ignores the technology cost multiplier setting.
upgrade :: boolean [R] If the is technology prototype is an upgrade to some other technology.
prerequisites :: dictionary[stringLuaTechnologyPrototype] [R] Prerequisites of this technology.
research_unit_ingredients :: array[Ingredient] [R] Ingredients labs will require to research this technology.
effects :: array[TechnologyModifier] [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 level of this research.
max_level :: uint [R] The max level of this research.
research_unit_count_formula :: string [R] The count formula used for this infinite research or nil if this isn't an infinite research.
valid :: boolean [R] Is this object valid?
object_name :: string [R] The class name of this object.
help() → string All methods and properties that this object supports.
name :: string [Read-only]

Name of this technology.

localised_name :: LocalisedString [Read-only]

Localised name of this technology.

localised_description :: LocalisedString [Read-only]

enabled :: boolean [Read-only]

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

hidden :: boolean [Read-only]

If this technology prototype is hidden.

visible_when_disabled :: boolean [Read-only]

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

ignore_tech_cost_multiplier :: boolean [Read-only]

If this technology ignores the technology cost multiplier setting.

Note: LuaTechnologyPrototype::research_unit_count will already take this setting into account.
upgrade :: boolean [Read-only]

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

prerequisites :: dictionary[stringLuaTechnologyPrototype] [Read-only]

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

research_unit_ingredients :: array[Ingredient] [Read-only]

Ingredients labs will require to research this technology.

effects :: array[TechnologyModifier] [Read-only]

Effects applied when this technology is researched.

research_unit_count :: uint [Read-only]

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-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 level of this research.

max_level :: uint [Read-only]

The max level of this research.

research_unit_count_formula :: string [Read-only]

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