From 61e9db4df463115df3dbebf091752d6dc554c84b Mon Sep 17 00:00:00 2001 From: Brevven Date: Mon, 15 Mar 2021 03:45:31 -0700 Subject: [PATCH] modmash refining --- changelog.txt | 8 ++++++++ titanium-recipe-final-modmash.lua | 24 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/changelog.txt b/changelog.txt index 951c874..8dd9512 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,11 @@ +--------------------------------------------------------------------------------------------------- +Version: 0.10.3 +Date: 2021-03-14 + Features: + - Supersonic trains recipes + - Modmash refined ore balance + - Minor refactor +--------------------------------------------------------------------------------------------------- Version: 0.10.2 Date: 2021-03-10 Features: diff --git a/titanium-recipe-final-modmash.lua b/titanium-recipe-final-modmash.lua index 8241451..09a0719 100644 --- a/titanium-recipe-final-modmash.lua +++ b/titanium-recipe-final-modmash.lua @@ -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")