Update to 2.0
This commit is contained in:
parent
593841534e
commit
e900b41958
31 changed files with 311 additions and 416 deletions
|
|
@ -1,6 +1,6 @@
|
|||
local util = require("data-util");
|
||||
|
||||
if mods["248k"] then
|
||||
if mods["248k-Redux"] then
|
||||
local au2 = "fu_materials_gold_ingot"
|
||||
|
||||
-- Swap out all 248k gold ingot for BZ gold ingot
|
||||
|
|
|
|||
|
|
@ -1,22 +1,16 @@
|
|||
local util = require("data-util")
|
||||
|
||||
if mods.bobelectronics or mods.MDbobelectronics then
|
||||
if mods.bobelectronics or mods.MDbobelectronics or mods.MDbobelectronics2 then
|
||||
util.replace_ingredient("advanced-processing-unit", "processing-electronics", "cpu", 4)
|
||||
util.remove_recipe_effect("advanced-electronics-3", "processing-electronics")
|
||||
util.remove_raw("recipe", "processing-electronics")
|
||||
util.remove_raw("item", "processing-electronics")
|
||||
|
||||
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
|
||||
for k = #module.limitation, 1, -1 do
|
||||
if module.limitation[k] == "processing-electronics" then
|
||||
table.remove(module.limitation, k)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if mods["Krastorio2"] then
|
||||
data.raw.recipe["kr-crush-processing-electronics"] = nil
|
||||
end
|
||||
|
||||
if mods["248k-Redux"] then
|
||||
data.raw.recipe["fu_burn_processing-electronics_recipe"] = nil
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue