Update dependency names in code
This commit is contained in:
parent
48daec2c59
commit
90d6ba5a0a
5 changed files with 25 additions and 25 deletions
|
@ -1,6 +1,6 @@
|
|||
local util = require("data-util")
|
||||
|
||||
if mods["248k"] then
|
||||
if mods["248k-Redux"] then
|
||||
data:extend({
|
||||
{
|
||||
type = "fluid",
|
||||
|
|
|
@ -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}},
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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"}
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue