Prototype/Technology: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(added a note about upgradeing technologies)
(Removed old prototype docs)
Tag: Replaced
 
(38 intermediate revisions by 8 users not shown)
Line 1: Line 1:
==Basics==
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/prototypes/TechnologyPrototype.html https://lua-api.factorio.com/latest/prototypes/TechnologyPrototype.html]
More in [[Research]]


== Mandatory properties ==
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
=== unit ===
It contains
* count - How many units are needed
* time - how much time is needed per one unit, in standard laboratory without upgrades it is is count of seconds
* ingredients - list of ingredients needed for one units
  unit =
  {
    count = 20,
    time = 5,
    ingredients = { ["science-pack-1"] = 1 }
  }
=== prerequisites ===
List of technologies needed to be researched before this one can be researched.
  prerequisites = {"explosives", "military-2"}
=== effects ===
List of effects of the technology (applied when the technology is researched).
 
More on [[prototype/technology-modifier]]
  {
    type  = "unlock-recipe",
    recipe = "land-mine"
  }
 
== Optional properties ==
=== upgrade ===
When set to true, and the technology contains several levels, only the relevant one is displayed in the technology screen.
<pre> {
    type = "technology",
    name = "rocket-damage-2",
    ...
    upgrade = "true"
    }</pre>
Default value is false
 
note from FreeER, it is possible that I am wrong so I figured I'd put my name and that this senctence could mislead you first lol, I believe that all except for the first unresearched technology in the series are hidden, for factorio to know which technologies are in that series the technology names must be the same except for the number at the end
note from Matjojo, It is currently not possible to have more than one descriptions for a line of upgrades.

Latest revision as of 14:33, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/prototypes/TechnologyPrototype.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.