From 34578d283b6b10bff5ae35206090b48b918694fd Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Sun, 16 Feb 2025 13:36:44 +0100 Subject: [PATCH] AAI Industry: Keep the technology changes AAI Industry makes --- lignumis/prototypes/integrations/vanilla.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lignumis/prototypes/integrations/vanilla.lua b/lignumis/prototypes/integrations/vanilla.lua index 3cfd62f..21de8f1 100644 --- a/lignumis/prototypes/integrations/vanilla.lua +++ b/lignumis/prototypes/integrations/vanilla.lua @@ -161,11 +161,13 @@ if not mods["planet-picker"] then time = 1 } - local electronics_technology = data.raw.technology["electronics"] - electronics_technology.prerequisites = { "copper-processing" } + if not mods["aai-industry"] then + local electronics_technology = data.raw.technology["electronics"] + electronics_technology.prerequisites = { "copper-processing" } - local steam_power_technology = data.raw.technology["steam-power"] - steam_power_technology.prerequisites = { "iron-processing" } + local steam_power_technology = data.raw.technology["steam-power"] + steam_power_technology.prerequisites = { "iron-processing" } + end local automation_technology = data.raw.technology["automation"] automation_technology.ignore_tech_cost_multiplier = false