modmash refining

This commit is contained in:
Brevven 2021-03-15 03:45:31 -07:00
parent f240a2350e
commit 61e9db4df4
2 changed files with 32 additions and 0 deletions

View file

@ -16,6 +16,30 @@ if mods["modmashsplinter"] then
}
end
end
if mods["modmashsplinterrefinement"] then
local recipe = data.raw.recipe["titanium-ore-refined_to_plate"]
if recipe and recipe.ingredients then
for i, ingredient in ipairs(recipe.ingredients) do
if ingredient[1] and ingredient[1] == "titanium-ore-refined" then
ingredient[2] = 5
end
end
end
if recipe and recipe.normal and recipe.normal.ingredients then
for i, ingredient in ipairs(recipe.normal.ingredients) do
if ingredient[1] and ingredient[1] == "titanium-ore-refined" then
ingredient[2] = 5
end
end
end
if recipe and recipe.expensive and recipe.expensive.ingredients then
for i, ingredient in ipairs(recipe.expensive.ingredients) do
if ingredient[1] and ingredient[1] == "titanium-ore-refined" then
ingredient[2] =10
end
end
end
end
if mods["modmashsplinterlogistics"] then
util.steel_to_titanium("regenerative-transport-belt")