Hello! I am interested in your mod! And I want to integrate your missiles into the technology chains for my mod https://mods.factorio.com/mod/My_add_pack_updated
I tried to make adjustments to the unlocking technologies of your missiles in my mod, but failed.
Please, could you add a condition to your code:
if mods["My_add_pack_updated"] then
if data.raw.technology["chemical-weapons"] then
table.insert(data.raw["technology"]["chemical-weapons"].effects, {type = "unlock-recipe",recipe = "chemical-rocket"})
end
if data.raw.technology["Fire-weapon-upgrades"] then
table.insert(data.raw["technology"]["Fire-weapon-upgrades"].effects, {type = "unlock-recipe",recipe = "incendiary-rocket"})
end
end
And also remove the line from your data-updates.lua file:
table.insert(technology.effects, {type = "unlock-recipe", recipe = "flamethrower-ammo"})
It is clearly unnecessary...
Thanks!