Module lib.technology.lua
Technology-related functions.
Dependencies: util, lib.lib, lib.remove-replace-object
Functions
| Public.get_child_technologies (tech_name) | Technology name goes in. |
| Public.technology_icon_moon (tech_icon, icon_size) | Create a moon discovery technology icon by adding a little moon icon on your technology icon, like in vanilla, but for moon type planets. |
| Public.technology_icon_planet (tech_icon, icon_size) | Create a planet discovery technology icon by adding a little planet icon on your technology icon, like in vanilla. |
| Public.process_technology_recipe_productivity_effects (tech) |
Functions
- Public.get_child_technologies (tech_name)
-
Technology name goes in. Out comes an array of technology names that currently list that tech as a prerequisite. Throws an error if an invalid prototype name is passed.
Parameters:
- tech_name string
Returns:
-
string[] children
- Public.technology_icon_moon (tech_icon, icon_size)
-
Create a moon discovery technology icon by adding a little moon icon on your technology icon, like in vanilla, but for moon type planets.
Parameters:
- tech_icon string The technology icon to add the moon icon
- icon_size integer Your icon size
Returns:
-
data.IconData[]
- Public.technology_icon_planet (tech_icon, icon_size)
-
Create a planet discovery technology icon by adding a little planet icon on your technology icon, like in vanilla.
Parameters:
- tech_icon string The technology icon to add the planet icon
- icon_size integer Your icon size
Returns:
-
data.IconData[]
- Public.process_technology_recipe_productivity_effects (tech)
-
Parameters:
- tech table (TechnologyPrototype)