From 90d6ba5a0a8f8cb09f44e7f213fdffe4d9915e3f Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Fri, 10 Oct 2025 17:56:03 +0200 Subject: [PATCH] Update dependency names in code --- Chromium2/prototypes/chromium-248k.lua | 2 +- Chromium2/prototypes/chromium-recipe.lua | 20 ++++++++++---------- Chromium2/prototypes/technology.lua | 4 ++-- Chromium2/recipe-final-fix.lua | 22 +++++++++++----------- Chromium2/recipe-modify.lua | 2 +- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/Chromium2/prototypes/chromium-248k.lua b/Chromium2/prototypes/chromium-248k.lua index 7087666..b808d25 100644 --- a/Chromium2/prototypes/chromium-248k.lua +++ b/Chromium2/prototypes/chromium-248k.lua @@ -1,6 +1,6 @@ local util = require("data-util") -if mods["248k"] then +if mods["248k-Redux"] then data:extend({ { type = "fluid", diff --git a/Chromium2/prototypes/chromium-recipe.lua b/Chromium2/prototypes/chromium-recipe.lua index 8d3f34a..d24c92c 100644 --- a/Chromium2/prototypes/chromium-recipe.lua +++ b/Chromium2/prototypes/chromium-recipe.lua @@ -76,7 +76,7 @@ if mods["Krastorio2"] then end local stainless_steel_ingredients = {{"steel-plate", 8}, {"chromium-plate", 2}} -if mods["IfNickel"] then +if mods["IfNickel-Updated"] then stainless_steel_ingredients = {{"steel-plate", 8}, {"chromium-plate", 1}, {"nickel-plate", 1}} end local stainless_steel_category = "crafting" @@ -132,11 +132,11 @@ data:extend({ }) local chromel_r_fabric_ingredients = {{"copper-plate", 8}, {"chromium-plate", 2}} -if mods["IfNickel"] then +if mods["IfNickel-Updated"] then chromel_r_fabric_ingredients = {{"nickel-plate", 8}, {"chromium-plate", 2}} end local chromel_r_fabric_crafting = "crafting" -if mods["248k"] then +if mods["248k-Redux"] then chromel_r_fabric_crafting = "fi_fiberer_category" end data:extend({ @@ -214,7 +214,7 @@ data:extend({ }) local inconel_ingredients = {{"steel-plate", 5}, {"chromium-plate", 3}, {"iron-plate", 1}, mods["Tantalite"] and {"niobium-plate", 1}} -if mods["IfNickel"] then +if mods["IfNickel-Updated"] then inconel_ingredients = {{"nickel-plate", 5}, {"chromium-plate", 3}, {"iron-plate", 1}, mods["Tantalite"] and {"niobium-plate", 1}} end local inconel_category = "crafting" @@ -248,7 +248,7 @@ data:extend({ local automation_core3_ingredients = {(data.raw.item["automation-core-2"] and {"automation-core-2", 1}) or {"steel-plate", 5}, {"inconel-718", 10}} local automation_core3_subgroup = "intermediate-product" -if (mods["BrassTacks"] and data.raw.item["advanced-gearbox"]) and (mods["IfNickel"] and data.raw.item["advanced-machining-tool"]) then --check for hardmode +if (mods["BrassTacks-Updated"] and data.raw.item["advanced-gearbox"]) and (mods["IfNickel-Updated"] and data.raw.item["advanced-machining-tool"]) then --check for hardmode automation_core3_ingredients = {data.raw.item["automation-core-2"] and {"automation-core-2", 1}, {"advanced-gearbox", 1}, {"complex-joint", 2}, {"advanced-machining-tool", 2}, {"inconel-718", 4}} automation_core3_subgroup = "articulated-components" end @@ -281,9 +281,9 @@ end end util.add_productivity("automation-core-3") -local turbines_blade_ingredients = {{"inconel-718", 10}, mods["248k"] and {"fi_materials_GFK", 5}, {"air-bearing", 2}} +local turbines_blade_ingredients = {{"inconel-718", 10}, mods["248k-Redux"] and {"fi_materials_GFK", 5}, {"air-bearing", 2}} local turbines_blade_subgroup = "intermediate-product" -if mods["IfNickel"] then +if mods["IfNickel-Updated"] then turbines_blade_subgroup = "engine-components" end data:extend({ @@ -314,7 +314,7 @@ else util.add_unlock("nuclear-power","turbine-blades") end local hrld_structure_subgroup = "intermediate-product" -if mods["IfNickel"] then +if mods["IfNickel-Updated"] then hrld_structure_subgroup ="frame-components" end data:extend({ @@ -368,7 +368,7 @@ else util.add_unlock("nuclear-power","air-bearing") end local advanced_electric_motor_subgroup = "intermediate-product" -if mods["IfNickel"] then +if mods["IfNickel-Updated"] then advanced_electric_motor_subgroup = "engine-components" end data:extend({ @@ -389,7 +389,7 @@ data:extend({ order = "g", enabled = false, energy_required = 12, - ingredients = {{"inconel-718", 2}, {"air-bearing", 1}, {"electric-engine-unit", 2}, mods["ThemTharHills"] and {"hv-power-regulator", 1}, { type = "fluid", name = "lubricant", amount = 40 }}, + ingredients = {{"inconel-718", 2}, {"air-bearing", 1}, {"electric-engine-unit", 2}, mods["ThemTharHills-Updated"] and {"hv-power-regulator", 1}, { type = "fluid", name = "lubricant", amount = 40 }}, results = {{"advanced-electric-motor", 1}}, } }) diff --git a/Chromium2/prototypes/technology.lua b/Chromium2/prototypes/technology.lua index b0dd490..2219f6d 100644 --- a/Chromium2/prototypes/technology.lua +++ b/Chromium2/prototypes/technology.lua @@ -28,7 +28,7 @@ data:extend( } }, }) - if mods["IfNickel"] and data.raw.item["gimbaled-thruster"] then + if mods["IfNickel-Updated"] and data.raw.item["gimbaled-thruster"] then util.add_prerequisite("gimbaled-thruster", "chromium-processing") --not sure why gimbaled thrusters don't need rocketry util.add_prerequisite("gimbaled-thruster", "rocketry") @@ -233,7 +233,7 @@ data:extend( if mods["space-exploration"] then util.add_prerequisite("se-thruster-suit", "chromel-r-fabric") end - if mods["IfNickel"] and data.raw.item["nitinol-plate"] then + if mods["IfNickel-Updated"] and data.raw.item["nitinol-plate"] then util.add_prerequisite("nitinol-processing", "chromel-r-fabric") end local hr_low_density_structure_prerequisites = {"rocket-silo"} diff --git a/Chromium2/recipe-final-fix.lua b/Chromium2/recipe-final-fix.lua index 1946e99..357674d 100644 --- a/Chromium2/recipe-final-fix.lua +++ b/Chromium2/recipe-final-fix.lua @@ -1,7 +1,7 @@ local util = require("data-util") -if mods["IfNickel"] and data.raw["nitinol-plate"] then +if mods["IfNickel-Updated"] and data.raw["nitinol-plate"] then util.replace_ingredient("nitinol-plate", "nickel-plate", "chromel-r-fabric") if mods["space-exploration"] then @@ -9,35 +9,35 @@ if mods["IfNickel"] and data.raw["nitinol-plate"] then end end -if mods["BrassTacks"] then +if mods["BrassTacks-Updated"] then util.remove_ingredient("steam-turbine", "bearing") end if mods["Krastorio2"] then util.remove_ingredient("assembling-machine-3", "steel-gear-wheel") --not very nice but it works - if mods["BrassTacks"] and "advanced-gearbox" then + if mods["BrassTacks-Updated"] and "advanced-gearbox" then util.remove_ingredient("assembling-machine-3", "concrete") - util.replace_ingredient("assembling-machine-3", mods["BrassTacks"] and "complex-joint", "concrete", 8) - util.replace_ingredient("assembling-machine-3", mods["BrassTacks"] and "advanced-gearbox", "advanced-electric-motor", 4) + util.replace_ingredient("assembling-machine-3", mods["BrassTacks-Updated"] and "complex-joint", "concrete", 8) + util.replace_ingredient("assembling-machine-3", mods["BrassTacks-Updated"] and "advanced-gearbox", "advanced-electric-motor", 4) else util.add_ingredient("assembling-machine-3", "advanced-electric-motor", 4) end - if mods["IfNickel"] and "advanced-machining-tool" then - util.replace_ingredient("assembling-machine-3", mods["IfNickel"] and "advanced-machining-tool", "automation-core-3", 2) + if mods["IfNickel-Updated"] and "advanced-machining-tool" then + util.replace_ingredient("assembling-machine-3", mods["IfNickel-Updated"] and "advanced-machining-tool", "automation-core-3", 2) else util.add_ingredient("assembling-machine-3", "automation-core-3", 2) end - if mods["ThemTharHills"] then + if mods["ThemTharHills-Updated"] then util.remove_ingredient("assembling-machine-3", "hv-power-regulator") end if mods["space-exploration"] then util.add_ingredient("se-space-assembling-machine", "automation-core-3", 2) - util.remove_ingredient("se-space-assembling-machine", mods["BrassTacks"] and "advanced-gearbox") - util.remove_ingredient("se-space-assembling-machine", mods["IfNickel"] and "advanced-machining-tool") - util.remove_ingredient("se-space-assembling-machine", mods["BrassTacks"] and "complex-joint") + util.remove_ingredient("se-space-assembling-machine", mods["BrassTacks-Updated"] and "advanced-gearbox") + util.remove_ingredient("se-space-assembling-machine", mods["IfNickel-Updated"] and "advanced-machining-tool") + util.remove_ingredient("se-space-assembling-machine", mods["BrassTacks-Updated"] and "complex-joint") end end \ No newline at end of file diff --git a/Chromium2/recipe-modify.lua b/Chromium2/recipe-modify.lua index 655c657..36e7407 100644 --- a/Chromium2/recipe-modify.lua +++ b/Chromium2/recipe-modify.lua @@ -10,7 +10,7 @@ util.remove_ingredient("steam-turbine", "copper-plate") util.remove_ingredient("assembling-machine-3", "electric-engine-unit") -- Mod changes -if mods["248k"] then +if mods["248k-Redux"] then util.replace_ingredient("fi_low-density-structure_recipe", "copper-plate", "chromel-r-fabric", 10) util.remove_ingredient("steam-turbine", "fi_materials_GFK") end