From d008c0c60398d22b9fe310ef4be77b4424f155d7 Mon Sep 17 00:00:00 2001 From: Alyssa Doubrovsky Date: Sat, 15 Nov 2025 16:33:53 -0800 Subject: [PATCH 1/2] Linearizing all files in pyhightech --- prototypes/buildings/accumulator-mk01.lua | 4 ++++ prototypes/buildings/accumulator-mk02.lua | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/prototypes/buildings/accumulator-mk01.lua b/prototypes/buildings/accumulator-mk01.lua index 7e81c5e..ec47bed 100644 --- a/prototypes/buildings/accumulator-mk01.lua +++ b/prototypes/buildings/accumulator-mk01.lua @@ -19,6 +19,10 @@ 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"} end +if mods.pyhightech then + RECIPE("accumulator-mk01"):add_ingredient_unsafe {type = "item", name = "used-nexelit-battery", amount = 1} +end + ITEM { type = "item", name = "accumulator-mk01", diff --git a/prototypes/buildings/accumulator-mk02.lua b/prototypes/buildings/accumulator-mk02.lua index 7454d73..6041948 100644 --- a/prototypes/buildings/accumulator-mk02.lua +++ b/prototypes/buildings/accumulator-mk02.lua @@ -24,6 +24,11 @@ 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", From a8cf156fb4fdf734e2d7d7a5a45517b3813464ab Mon Sep 17 00:00:00 2001 From: Alyssa Doubrovsky Date: Sat, 29 Nov 2025 17:00:29 -0800 Subject: [PATCH 2/2] final corrections Fixing recipes that were accidentally altered by linearization --- prototypes/buildings/accumulator-mk01.lua | 4 ++-- prototypes/buildings/accumulator-mk02.lua | 4 ++-- prototypes/technologies/accumulators.lua | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/prototypes/buildings/accumulator-mk01.lua b/prototypes/buildings/accumulator-mk01.lua index ec47bed..f89903b 100644 --- a/prototypes/buildings/accumulator-mk01.lua +++ b/prototypes/buildings/accumulator-mk01.lua @@ -13,10 +13,10 @@ 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 diff --git a/prototypes/buildings/accumulator-mk02.lua b/prototypes/buildings/accumulator-mk02.lua index 6041948..b7894d6 100644 --- a/prototypes/buildings/accumulator-mk02.lua +++ b/prototypes/buildings/accumulator-mk02.lua @@ -14,10 +14,10 @@ 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 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 {