is it possible to change the recipe of something by research a tech.
by exemple, the cost of iron plate is 1 iron ore.
I want it become 2 iron ore for 1 iron plate after the furnace tech.
Thanks
tech to change a recipe
-
- Manual Inserter
- Posts: 2
- Joined: Mon Aug 22, 2016 12:35 pm
- Contact:
-
- Burner Inserter
- Posts: 17
- Joined: Sun Aug 14, 2016 7:38 pm
- Contact:
Re: tech to change a recipe
Most of the stuff is read only. I'd assume you need to disable the old recipe (listen in control.lua to the on_research_finished and set the enabled flag of the old recipe to false) and add a new expensive recipe with the research.
Relevant API pages:
http://lua-api.factorio.com/0.13.17/LuaRecipe.html
http://lua-api.factorio.com/0.13.17/events.html
Relevant API pages:
http://lua-api.factorio.com/0.13.17/LuaRecipe.html
http://lua-api.factorio.com/0.13.17/events.html