From aaabba2d544e0266de240f3aef1be4ed2d8a519c Mon Sep 17 00:00:00 2001 From: npc-strider Date: Thu, 3 Jan 2019 17:54:50 +0800 Subject: [PATCH] productivity modules --- 017_science/data-updates.lua | 17 +++++++++++++++++ 017_science/info.json | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 017_science/data-updates.lua 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)",