diff --git a/017_science/data-updates.lua b/017_science/data-updates.lua new file mode 100644 index 0000000..6732b7c --- /dev/null +++ b/017_science/data-updates.lua @@ -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 \ No newline at end of file diff --git a/017_science/info.json b/017_science/info.json index 0120a5c..fc02c4d 100644 --- a/017_science/info.json +++ b/017_science/info.json @@ -1,6 +1,6 @@ { "name": "017_science", - "version": "0.0.2", + "version": "0.0.3", "factorio_version": "0.16", "title": "0.17 science conversion", "author": "npc_strider(morley376)",