Used code:
Code: Select all
data:extend({{
type = "technology",
name = "foo-train",
icon = "__base__/graphics/technology/railway.png",
icon_size = 256,
research_trigger = {
type = "mine-entity",
entity = "locomotive"
},
unit = {
count = 1,
time = 1,
ingredients = {{"automation-science-pack", 1}}
},
effects = {{
type = "unlock-recipe",
recipe = "locomotive"
}}
}})

When mining a locomotive this technology is unlocked and the research cost is omitted. Therefore the icons from the research cost are redundant.
Expected result:

Next to that, either Factorio should throw an error if both research_trigger and cost are defined, or update the API docs to state that cost does nothing if research_trigger is defined.