Code: Select all
if settings.startup["experimental-features"].value==true then
for i,entity in ipairs(Aircraft_List) do
local new_plane = table.deepcopy(data.raw["car"][entity])
local old_name=new_plane.name
new_plane.name = new_plane.name .. "-carbon-fiber"
new_plane.weight=new_plane.weight/2
--new_plane.weight=new_plane.weight/2
new_plane.max_health=new_plane.max_health/2
new_plane.minable = {mining_time = 1, result = new_plane.name}
--new_plane.localised_name = {{"item-name.carbon-fiber"},{"item-name."..old_name}}
new_plane.localised_name = {{"carbon-fiber-aircraft"},{"item-name."..old_name}}
data:extend({new_plane})
end