Ability to filter technology_prototypes by effect?

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
mrudat
Fast Inserter
Fast Inserter
Posts: 229
Joined: Fri Feb 16, 2018 5:21 am
Contact:

Ability to filter technology_prototypes by effect?

Post by mrudat »

Could get_filtered_technology_prototypes be extended to support a filter something like the following?

Code: Select all

local technologies_that_unlock_recipe = game.get_filtered_technology_prototypes{
  {
    filter = "effects"
    elem_filters = {
      { type = "unlock-recipe" recipe = "bake-me-a-cake" },
    }
  }
}
I have constructed in a number of places a mapping from item to recipe, and there's a filter to support that, but I also want to lookup technology from recipe, and there is not (yet) a filter to do that.

Post Reply

Return to “Modding interface requests”