productivity modules

This commit is contained in:
Peter 2019-01-03 17:54:50 +08:00
parent e711c7f0cd
commit aaabba2d54
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,17 @@
--whitelist for productivity module effect
for _, mod in pairs(data.raw.module) do
if mod.effect ~= nil then
for _, effect in pairs(mod.effect) do
if effect[1] == productivity then
if mod.limitation ~= nil then
local limitation = mod.limitation
--new stuff
table.insert(limitation, "17-military-science-pack")
table.insert(limitation, "17-chemical-science-pack")
table.insert(limitation, "17-production-science-pack")
table.insert(limitation, "17-utility-science-pack")
end
end
end
end
end

View File

@ -1,6 +1,6 @@
{ {
"name": "017_science", "name": "017_science",
"version": "0.0.2", "version": "0.0.3",
"factorio_version": "0.16", "factorio_version": "0.16",
"title": "0.17 science conversion", "title": "0.17 science conversion",
"author": "npc_strider(morley376)", "author": "npc_strider(morley376)",