researchSync: client

This commit is contained in:
theCatsPaw committed 2018-02-21 22:26:33 +01:00
1 parent e64db6b236
commit 8935d03b4a
4 files changed
+77 -18

No files matched your search

+5 -1
View File
@@ -1,8 +1,12 @@
/silent-command
local lines = "";
for _, tech in pairs(game.forces["player"].technologies) do
local dict = {};
dict[tech.name] = tech.researched;
game.write_file("researchSync.txt",serpent.line(dict));
lines = lines .. serpent.line(dict) .. "\n";
end
game.write_file("researchSync.txt",lines)