technology.lua
Code: Select all
table.insert(data.raw["technology"]["circuit-network"].effects, {type = "unlock-recipe",recipe = "train-requests-reader"})
Thank you.
Code: Select all
table.insert(data.raw["technology"]["circuit-network"].effects, {type = "unlock-recipe",recipe = "train-requests-reader"})
If your mod was added to an existing game, script.on_init will be triggered for your mod. Just add this to your event handler:
Code: Select all
for _, force in pairs(game.forces) do
force.reset_technology_effects()
end