Inherits from PrototypeBase |
icons optional | :: array[IconData] | Can't be an empty array. |
Can't be an empty array. | ||
icon optional | :: FileName | Path to the icon file. |
Path to the icon file. | ||
icon_size optional | :: SpriteSizeType | The size of the square icon, in pixels, e.g. |
The size of the square icon, in pixels, e.g. | ||
icon_mipmaps optional | :: IconMipMapType | Icons of reduced size will be used at decreased scale. |
Icons of reduced size will be used at decreased scale. | ||
normal optional | :: TechnologyData or false | Can be set to |
Can be set to | ||
expensive optional | :: TechnologyData or false | Can be set to |
Can be set to | ||
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 | Only loaded if neither |
Only loaded if neither | ||
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 optional | :: 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). |
type | :: string | Specifies the kind of prototype this is. |
Specifies the kind of prototype this is. | ||
name[overridden] | :: string | Unique textual identification of the prototype. |
Unique textual identification of the prototype. | ||
order optional | :: Order | Used to order prototypes in inventory, recipes and GUIs. |
Used to order prototypes in inventory, recipes and GUIs. | ||
localised_name optional | :: LocalisedString | Overwrites the name set in the locale file. |
Overwrites the name set in the locale file. | ||
localised_description optional | :: LocalisedString | Overwrites the description set in the locale file. |
Overwrites the description set in the locale file. |
false
optional false
optional {
type = "technology",
name = "physical-projectile-damage-2",
[...]
upgrade = "true"
}
"infinite"
optional prerequisites = {"explosives", "military-2"}
{
{
type = "unlock-recipe",
recipe = "land-mine"
}
}
{
type = "technology",
name = "steel-processing",
icon_size = 256,
icon_mipmaps = 4,
icon = "__base__/graphics/technology/steel-processing.png",
effects =
{
{
type = "unlock-recipe",
recipe = "steel-plate"
},
{
type = "unlock-recipe",
recipe = "steel-chest"
}
},
unit =
{
count = 50,
ingredients = {{"automation-science-pack", 1}},
time = 5
},
order = "c-a"
}