For my mod Tankwerkz i am adding additional effects to vanilla research and this works when starting a new game, but does not for a existing save that already has the research unlocked.
Adding additional effect to bullet-damage-1:
Code: Select all
data.raw["technology"]["bullet-damage-1"].effects[2] =
{
type = "ammo-damage",
ammo_category = "heavy-mg",
modifier = "0.1"
}
Code: Select all
game.reload_script()
for index, force in pairs(game.forces) do
force.reset_recipes()
force.reset_technologies()
end
Code: Select all
game.reload_script()
for index, force in pairs(game.forces) do
force.reset_recipes()
force.reset_technologies()
local technologies = force.technologies;
technologies["bullet-damage-1"].reload()
end
Does anyone know what i am doing wrong here?