mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 08:23:12 +09:00
Dump only enabled research (#164)
This commit is contained in:
1 parent
c978e8e748
commit
0b34f07954
1 file changed
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
local data = {};
|
local data = {};
|
||||||
|
|
||||||
for _, tech in pairs(game.forces["player"].technologies) do
|
for _, tech in pairs(game.forces["player"].technologies) do
|
||||||
if tech.prototype.max_level == 4294967295 then
|
if tech.enabled == true and tech.prototype.max_level == 4294967295 then
|
||||||
table.insert(data, tech.name .. ":" .. tostring(tech.researched) .. ":" .. tostring(tech.level) .. ":true");
|
table.insert(data, tech.name .. ":" .. tostring(tech.researched) .. ":" .. tostring(tech.level) .. ":true");
|
||||||
else
|
else
|
||||||
table.insert(data, tech.name .. ":" .. tostring(tech.researched) .. ":" .. tostring(tech.level) .. ":false");
|
table.insert(data, tech.name .. ":" .. tostring(tech.researched) .. ":" .. tostring(tech.level) .. ":false");
|
||||||
|
|||||||
Reference in new issue
Block a user