Used when defining a TechnologyPrototype that uses difficulty. For a technology without difficulty, these same properties are defined on the prototype itself.
| upgrade optional | :: bool | When set to true, and the technology contains several levels, only the relevant one is displayed in the technology screen. |
When set to true, and the technology contains several levels, only the relevant one is displayed in the technology screen. | ||
| enabled optional | :: bool | |
| hidden optional | :: bool | Hides the technology from the tech screen. |
Hides the technology from the tech screen. | ||
| visible_when_disabled optional | :: bool | Controls whether the technology is shown in the tech GUI when it is not |
Controls whether the technology is shown in the tech GUI when it is not | ||
| ignore_tech_cost_multiplier optional | :: bool | Controls whether the technology cost ignores the tech cost multiplier set in the DifficultySettings, e.g. |
Controls whether the technology cost ignores the tech cost multiplier set in the DifficultySettings, e.g. | ||
| unit | :: TechnologyUnit | Determines the cost in items and time of the technology. |
Determines the cost in items and time of the technology. | ||
| max_level optional | :: uint32 or "infinite" |
|
| ||
| prerequisites optional | :: array[TechnologyID] | List of technologies needed to be researched before this one can be researched. |
List of technologies needed to be researched before this one can be researched. | ||
| effects optional | :: array[Modifier] | List of effects of the technology (applied when the technology is researched). |
List of effects of the technology (applied when the technology is researched). | ||
| unit | :: TechnologyUnit | Determines the cost in items and time of the technology. |
Determines the cost in items and time of the technology. | ||
| effects optional | :: array[Modifier] | List of effects of the technology (applied when the technology is researched). |
List of effects of the technology (applied when the technology is researched). | ||
| enabled optional | :: bool | |
| hidden optional | :: bool | Hides the technology from the tech screen. |
Hides the technology from the tech screen. | ||
| ignore_tech_cost_multiplier optional | :: bool | Controls whether the technology cost ignores the tech cost multiplier set in the DifficultySettings, e.g. |
Controls whether the technology cost ignores the tech cost multiplier set in the DifficultySettings, e.g. | ||
| max_level optional | :: uint32 or "infinite" |
|
| ||
| prerequisites optional | :: array[TechnologyID] | List of technologies needed to be researched before this one can be researched. |
List of technologies needed to be researched before this one can be researched. | ||
| upgrade optional | :: bool | When set to true, and the technology contains several levels, only the relevant one is displayed in the technology screen. |
When set to true, and the technology contains several levels, only the relevant one is displayed in the technology screen. | ||
| visible_when_disabled optional | :: bool | Controls whether the technology is shown in the tech GUI when it is not |
Controls whether the technology is shown in the tech GUI when it is not | ||

Default: false
When set to true, and the technology contains several levels, only the relevant one is displayed in the technology screen.
{
type = "technology",
name = "physical-projectile-damage-2",
[...]
upgrade = "true"
}

Default: false
Controls whether the technology is shown in the tech GUI when it is not enabled.

Default: false
Controls whether the technology cost ignores the tech cost multiplier set in the DifficultySettings, e.g. 4 for the default expensive difficulty.

Determines the cost in items and time of the technology.
"infinite" optional 
"infinite" for infinite technologies, otherwise uint32.
Defaults to the same level as the technology, which is 0 for non-upgrades, and the level of the upgrade for upgrades.

List of technologies needed to be researched before this one can be researched.
prerequisites = {"explosives", "military-2"}

List of effects of the technology (applied when the technology is researched).
{
{
type = "unlock-recipe",
recipe = "land-mine"
}
}

Prototypes
Types