i hope i'm not annoying you but i found a few other issues:
space age changed the physical projectile damage modifiers.
so i added an optional dependency for space age ("?space-age") (so the mod loads after that) and changed some of the code:
...tech.lua to:
for i,technology in pairs(data.raw.technology) do
for j,effect in pairs(technology.effects or {}) do
if effect.type == "turret-attack" and effect.turret_id == "gun-turret" then
table.insert(technology.effects, {
type = "turret-attack",
turret_id = "lr-gun-turret",
modifier = effect.modifier
})
end
end
end
migration script to:
force.set_turret_attack_modifier("lr-gun-turret", force.get_turret_attack_modifier("gun-turret"))
(this also fixes that physical-projectile-damage-7 would be counted 7 times)