remove module script
This commit is contained in:
parent
dac45e54a3
commit
9407fdfb8e
2 changed files with 0 additions and 17 deletions
|
|
@ -1,5 +1,4 @@
|
|||
require("deadlock-stacking")
|
||||
require("modules")
|
||||
|
||||
local util = require("__bzsilicon__.data-util");
|
||||
|
||||
|
|
|
|||
16
modules.lua
16
modules.lua
|
|
@ -1,16 +0,0 @@
|
|||
local util = require("__bzsilicon__.data-util");
|
||||
|
||||
|
||||
for i, recipe in pairs(util.me.recipes) do
|
||||
if data.raw.recipe[recipe] then
|
||||
for j, module in pairs(data.raw.module) do
|
||||
if module.effect then
|
||||
for effect_name, effect in pairs(module.effect) do
|
||||
if effect_name == "productivity" and effect.bonus > 0 and module.limitation and #module.limitation > 0 then
|
||||
table.insert(module.limitation, recipe)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue