diff --git a/prototypes/buildings/accumulator-mk01.lua b/prototypes/buildings/accumulator-mk01.lua index 7e81c5e..f89903b 100644 --- a/prototypes/buildings/accumulator-mk01.lua +++ b/prototypes/buildings/accumulator-mk01.lua @@ -13,10 +13,14 @@ RECIPE { results = { {type = "item", name = "accumulator-mk01", amount = 1} } -} +}:add_unlock {"py-accumulator-mk01"} if mods.pycoalprocessing then - RECIPE("accumulator-mk01"):replace_ingredient_unsafe("steel-plate", "nexelit-plate"):add_ingredient_unsafe {type = "item", name = "niobium-plate", amount = 10}:add_unlock {"py-accumulator-mk01"} + RECIPE("accumulator-mk01"):replace_ingredient_unsafe("steel-plate", "nexelit-plate"):add_ingredient_unsafe {type = "item", name = "niobium-plate", amount = 10} +end + +if mods.pyhightech then + RECIPE("accumulator-mk01"):add_ingredient_unsafe {type = "item", name = "used-nexelit-battery", amount = 1} end ITEM { diff --git a/prototypes/buildings/accumulator-mk02.lua b/prototypes/buildings/accumulator-mk02.lua index 7454d73..b7894d6 100644 --- a/prototypes/buildings/accumulator-mk02.lua +++ b/prototypes/buildings/accumulator-mk02.lua @@ -14,16 +14,21 @@ RECIPE { results = { {type = "item", name = "accumulator-mk02", amount = 1} } -} +}:add_unlock("py-accumulator-mk02") if mods.pycoalprocessing then - RECIPE("accumulator-mk02"):replace_ingredient_unsafe("steel-plate", "nexelit-plate"):add_ingredient_unsafe {type = "item", name = "optical-fiber", amount = 30}:add_unlock("py-accumulator-mk02") + RECIPE("accumulator-mk02"):replace_ingredient_unsafe("steel-plate", "nexelit-plate"):add_ingredient_unsafe {type = "item", name = "optical-fiber", amount = 30} end if mods.pyrawores then RECIPE("accumulator-mk02"):add_ingredient_unsafe {type = "fluid", name = "liquid-nitrogen", amount = 50} end +if mods.pyhightech then + RECIPE("accumulator-mk02"):add_ingredient_unsafe {type = "item", name = "used-nexelit-battery", amount = 5} + RECIPE("accumulator-mk02"):remove_ingredient("battery"):add_ingredient_unsafe {type = "item", name = "re-magnet", amount = 10}:add_ingredient_unsafe {type = "item", name = "sc-coil", amount = 10} +end + ITEM { type = "item", name = "accumulator-mk02", diff --git a/prototypes/technologies/accumulators.lua b/prototypes/technologies/accumulators.lua index b85f988..05c74c6 100644 --- a/prototypes/technologies/accumulators.lua +++ b/prototypes/technologies/accumulators.lua @@ -38,6 +38,9 @@ TECHNOLOGY { order = "c-k-a", upgrade = true } +if mods.pycoalprocessing then + RECIPE("accumulator-mk02"):add_unlock("py-accumulator-mk02") +end if mods["pyalternativeenergy"] then TECHNOLOGY {