mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 07:04:53 +09:00
15 lines
350 B
Lua
15 lines
350 B
Lua
|
|
local data = {};
|
|
|
|
for _, tech in pairs(game.forces["player"].technologies) do
|
|
local tech_data = {
|
|
tech.name,
|
|
tostring(tech.researched),
|
|
tostring(tech.level),
|
|
}
|
|
tech_data = table.concat(tech_data, ':')
|
|
table.insert(data, tech_data);
|
|
end
|
|
|
|
game.write_file("researchSync.txt", table.concat(data, "\n"), false, 0)
|