mirror of
https://github.com/peter-tanner/017-science-transition-mod.git
synced 2024-11-30 19:10:20 +08:00
productivity modules
This commit is contained in:
parent
e711c7f0cd
commit
aaabba2d54
17
017_science/data-updates.lua
Normal file
17
017_science/data-updates.lua
Normal 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
|
|
@ -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)",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user