remove steel_to_titanium

This commit is contained in:
Brevven 2021-07-27 23:02:13 -07:00
parent 30de78fd3e
commit 1a34ed2dcf
7 changed files with 41 additions and 45 deletions

4
me.lua
View file

@ -16,10 +16,6 @@ else
me.titanium_processing = "titanium-processing" me.titanium_processing = "titanium-processing"
end end
function me.steel_to_titanium(name)
replace_ingredient(name, "steel-plate", me.titanium_plate)
end
function me.add_titanium_ingredient(amount, name) function me.add_titanium_ingredient(amount, name)
add_ingredient(name, me.titanium_plate, amount) add_ingredient(name, me.titanium_plate, amount)
end end

View file

@ -92,7 +92,7 @@ if mods["5dim_core"] then
if mods["5dim_automation"] then if mods["5dim_automation"] then
for i, name in ipairs( for i, name in ipairs(
{"5d-assembling-machine-07","5d-assembling-machine-08","5d-lab-06","5d-lab-07"}) do {"5d-assembling-machine-07","5d-assembling-machine-08","5d-lab-06","5d-lab-07"}) do
util.me.steel_to_titanium(name) util.replace_ingredient(name, "steel-plate", "titanium-plate")
end end
end end
@ -115,7 +115,7 @@ if mods["5dim_core"] then
end end
if mods["5dim_battlefield"] then if mods["5dim_battlefield"] then
util.me.steel_to_titanium(name) util.replace_ingredient(name, "steel-plate", "titanium-plate")
end end
end end

View file

@ -15,11 +15,11 @@ if mods["Krastorio2"] then
util.me.rare_to_titanium("kr-advanced-transport-belt-loader") util.me.rare_to_titanium("kr-advanced-transport-belt-loader")
end end
util.me.steel_to_titanium("kr-quarry-drill") util.replace_ingredient("kr-quarry-drill", "steel-plate", "titanium-plate")
util.me.steel_to_titanium("kr-singularity-lab") util.replace_ingredient("kr-singularity-lab", "steel-plate", "titanium-plate")
util.me.steel_to_titanium("stack-inserter") util.replace_ingredient("stack-inserter", "steel-plate", "titanium-plate")
util.me.steel_to_titanium("stack-filter-inserter") util.replace_ingredient("stack-filter-inserter", "steel-plate", "titanium-plate")
util.me.add_titanium_ingredient(40, "kr-advanced-steam-turbine") util.me.add_titanium_ingredient(40, "kr-advanced-steam-turbine")
end end

View file

@ -42,10 +42,10 @@ if mods["modmashsplinter"] then
end end
if mods["modmashsplinterlogistics"] then if mods["modmashsplinterlogistics"] then
util.me.steel_to_titanium("regenerative-transport-belt") util.replace_ingredient("regenerative-transport-belt", "steel-plate", "titanium-plate")
util.me.steel_to_titanium("regenerative-splitter") util.replace_ingredient("regenerative-splitter", "steel-plate", "titanium-plate")
util.me.steel_to_titanium("regenerative-underground-belt-structure") util.replace_ingredient("regenerative-underground-belt-structure", "steel-plate", "titanium-plate")
util.me.steel_to_titanium("regenerative-mini-loader") util.replace_ingredient("regenerative-mini-loader", "steel-plate", "titanium-plate")
end end
end end

View file

@ -9,10 +9,10 @@ if data.raw.recipe["se-space-pipe"] then
-- deadlock loaders for SE -- mods["deadlock-beltboxes-loaders"] -- deadlock loaders for SE -- mods["deadlock-beltboxes-loaders"]
if mods["Deadlock-SE-bridge"] then if mods["Deadlock-SE-bridge"] then
if data.raw.recipe["se-space-transport-belt-loader"] then if data.raw.recipe["se-space-transport-belt-loader"] then
util.me.steel_to_titanium("se-space-transport-belt-loader") util.replace_ingredient("se-space-transport-belt-loader", "steel-plate", "titanium-plate")
end end
if data.raw.recipe["se-space-transport-belt-beltbox"] then if data.raw.recipe["se-space-transport-belt-beltbox"] then
util.me.steel_to_titanium("se-space-transport-belt-beltbox") util.replace_ingredient("se-space-transport-belt-beltbox", "steel-plate", "titanium-plate")
end end
end end
end end

View file

@ -2,33 +2,33 @@ local util = require("__bztitanium__.data-util");
-- Various vehicle/transport mod changes -- Various vehicle/transport mod changes
if mods["Aircraft"] then if mods["Aircraft"] then
util.me.steel_to_titanium("gunship") util.replace_ingredient("gunship", "steel-plate", "titanium-plate")
util.me.steel_to_titanium("cargo-plane") util.replace_ingredient("cargo-plane", "steel-plate", "titanium-plate")
util.me.steel_to_titanium("flying-fortress") util.replace_ingredient("flying-fortress", "steel-plate", "titanium-plate")
util.me.add_titanium_ingredient(10, "aircraft-afterburner") util.me.add_titanium_ingredient(10, "aircraft-afterburner")
-- jet doesn't use steel in base aircraft mod, but leave this here just in case that changes -- jet doesn't use steel in base aircraft mod, but leave this here just in case that changes
util.me.steel_to_titanium("jet") util.replace_ingredient("jet", "steel-plate", "titanium-plate")
end end
if mods["betterCargoPlanes"] then if mods["betterCargoPlanes"] then
util.me.steel_to_titanium("better-cargo-plane") util.replace_ingredient("better-cargo-plane", "steel-plate", "titanium-plate")
end end
if mods["HelicopterRevival"] or mods["Helicopters"] then if mods["HelicopterRevival"] or mods["Helicopters"] then
util.me.steel_to_titanium("heli-recipe") util.replace_ingredient("heli-recipe", "steel-plate", "titanium-plate")
end end
if mods["adamo-chopper"] then if mods["adamo-chopper"] then
util.me.steel_to_titanium("chopper-recipe") util.replace_ingredient("chopper-recipe", "steel-plate", "titanium-plate")
end end
if mods["jetpack"] then if mods["jetpack"] then
util.me.steel_to_titanium("jetpack-1") util.replace_ingredient("jetpack-1", "steel-plate", "titanium-plate")
end end
if mods["Hovercrafts"] or mods["Hovercrafts_Realism"] then if mods["Hovercrafts"] or mods["Hovercrafts_Realism"] then
util.me.steel_to_titanium("hcraft-recipe") util.replace_ingredient("hcraft-recipe", "steel-plate", "titanium-plate")
util.me.add_titanium_prerequisite("hcraft-tech") util.me.add_titanium_prerequisite("hcraft-tech")
end end
@ -37,8 +37,8 @@ if mods["Raven"] then
end end
if mods["Hover-Car"] then if mods["Hover-Car"] then
util.me.steel_to_titanium("hover-car-recipe") util.replace_ingredient("hover-car-recipe", "steel-plate", "titanium-plate")
util.me.steel_to_titanium("hover-car-mk2-recipe") util.replace_ingredient("hover-car-mk2-recipe", "steel-plate", "titanium-plate")
end end
if mods["fast_trans"] then if mods["fast_trans"] then
@ -48,7 +48,7 @@ if mods["fast_trans"] then
"fast-one-mk2 txt", "fast-one-mk2 txt",
"fast-one-mk3 txt", "fast-one-mk3 txt",
}) do }) do
util.me.steel_to_titanium(item) util.replace_ingredient(item, "steel-plate", "titanium-plate")
end end
util.me.add_titanium_prerequisite("fast-one-tech-mk2") util.me.add_titanium_prerequisite("fast-one-tech-mk2")
end end

View file

@ -3,7 +3,7 @@
local util = require("__bztitanium__.data-util"); local util = require("__bztitanium__.data-util");
if (not mods["bobplates"]) then if (not mods["bobplates"]) then
util.me.steel_to_titanium("power-armor") util.replace_ingredient("power-armor", "steel-plate", "titanium-plate")
util.add_prerequisite("power-armor", util.me.titanium_processing) util.add_prerequisite("power-armor", util.me.titanium_processing)
-- Generally, steel-based equipment techs require solar panel tech, so only require -- Generally, steel-based equipment techs require solar panel tech, so only require
@ -14,14 +14,14 @@ if (not mods["bobplates"]) then
-- All equipment that uses steel now uses titanium. Who wants to carry around steel! -- All equipment that uses steel now uses titanium. Who wants to carry around steel!
for name, recipe in pairs(data.raw.recipe) do for name, recipe in pairs(data.raw.recipe) do
if recipe.result ~= nil and recipe.result:find("equipment") then if recipe.result ~= nil and recipe.result:find("equipment") then
util.me.steel_to_titanium(recipe.name) util.replace_ingredient(recipe.name, "steel-plate", "titanium-plate")
end end
end end
end end
util.me.steel_to_titanium("low-density-structure") util.replace_ingredient("low-density-structure", "steel-plate", "titanium-plate")
if mods["modmashsplintergold"] then if mods["modmashsplintergold"] then
util.me.steel_to_titanium("low-density-structure-with-gold") util.replace_ingredient("low-density-structure-with-gold", "steel-plate", "titanium-plate")
end end
if not mods["bobrevamp"] then if not mods["bobrevamp"] then
@ -30,14 +30,14 @@ end
if (not mods["bobplates"]) then if (not mods["bobplates"]) then
util.me.steel_to_titanium("flying-robot-frame") util.replace_ingredient("flying-robot-frame", "steel-plate", "titanium-plate")
util.me.add_titanium_prerequisite("robotics") util.me.add_titanium_prerequisite("robotics")
end end
if (mods["bobrevamp"] and not mods["bobplates"] and not mods["angelssmelting"]) then if (mods["bobrevamp"] and not mods["bobplates"] and not mods["angelssmelting"]) then
util.me.steel_to_titanium("flying-robot-frame-2") util.replace_ingredient("flying-robot-frame-2", "steel-plate", "titanium-plate")
util.me.steel_to_titanium("flying-robot-frame-3") util.replace_ingredient("flying-robot-frame-3", "steel-plate", "titanium-plate")
util.me.steel_to_titanium("flying-robot-frame-4") util.replace_ingredient("flying-robot-frame-4", "steel-plate", "titanium-plate")
end end
@ -45,15 +45,15 @@ end
if data.raw.recipe["se-space-pipe"] then if data.raw.recipe["se-space-pipe"] then
-- Space Exploration space stuff -- Space Exploration space stuff
util.me.steel_to_titanium("se-space-pipe") util.replace_ingredient("se-space-pipe", "steel-plate", "titanium-plate")
util.me.steel_to_titanium("se-space-transport-belt") util.replace_ingredient("se-space-transport-belt", "steel-plate", "titanium-plate")
util.me.steel_to_titanium("se-space-underground-belt") util.replace_ingredient("se-space-underground-belt", "steel-plate", "titanium-plate")
util.me.steel_to_titanium("se-space-splitter") util.replace_ingredient("se-space-splitter", "steel-plate", "titanium-plate")
util.me.steel_to_titanium("se-space-rail") util.replace_ingredient("se-space-rail", "steel-plate", "titanium-plate")
util.me.add_titanium_ingredient(1, "se-space-platform-scaffold") util.me.add_titanium_ingredient(1, "se-space-platform-scaffold")
-- Space Exploration alternative LDS -- Space Exploration alternative LDS
util.me.steel_to_titanium("se-low-density-structure-beryllium") util.replace_ingredient("se-low-density-structure-beryllium", "steel-plate", "titanium-plate")
-- Space Exploration buildings -- Space Exploration buildings
util.me.add_titanium_ingredient(20, "se-condenser-turbine") util.me.add_titanium_ingredient(20, "se-condenser-turbine")
@ -88,7 +88,7 @@ if mods["Aircraft"] then
end end
if mods["eve-weaponry"] then if mods["eve-weaponry"] then
util.me.steel_to_titanium("small-titanium-sabot") util.replace_ingredient("small-titanium-sabot", "steel-plate", "titanium-plate")
end end
if mods["FastFurnaces"] then if mods["FastFurnaces"] then
@ -105,7 +105,7 @@ util.replace_ingredient("artificial-organ", "iron-plate", "titanium-plate")
-- Memory storage changes -- Memory storage changes
if data.raw.item["memory-unit"] then if data.raw.item["memory-unit"] then
util.me.steel_to_titanium("memory-unit") util.replace_ingredient("memory-unit", "steel-plate", "titanium-plate")
end end
-- Underwater pipes changes -- Underwater pipes changes
@ -123,6 +123,6 @@ if data.raw.item["underwater-pipe"] then
end end
util.me.add_titanium_prerequisite("underwater-pipes") util.me.add_titanium_prerequisite("underwater-pipes")
util.me.steel_to_titanium("underwater-pipe") util.replace_ingredient("underwater-pipe", "steel-plate", "titanium-plate")
end end