From a41d3954ab67b8492636be07f8ff70e1c8a1cecc Mon Sep 17 00:00:00 2001 From: Brevven Date: Fri, 12 Mar 2021 00:16:48 -0800 Subject: [PATCH] add missing simplecompress file --- compressed-titanium.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 compressed-titanium.lua diff --git a/compressed-titanium.lua b/compressed-titanium.lua new file mode 100644 index 0000000..8938e25 --- /dev/null +++ b/compressed-titanium.lua @@ -0,0 +1,27 @@ + +if simpleCompress then + if simpleCompress.ores then + simpleCompress.currentSubgroup = "intermediate-product" + if data.raw.item["titanium-ore"] then + SimpleCompress_AddTintedItem("titanium-ore", "ore4-titanium", "ore", {r=0.85, g=0.85, b=0.75}) + SimpleCompress_UnlockOreTechAndRecipe("titanium-ore") + end + end + if simpleCompress.plates then + simpleCompress.currentSubgroup = "intermediate-product" + if data.raw.item["titanium-plate"] then + SimpleCompress_AddTintedItem("titanium-plate", "plates4-titanium", "plate3", {r=0.85, g=0.85, b=0.75}) + SimpleCompress_UnlockPlateTechAndRecipe("titanium-plate") + end + end + if simpleCompress.smelting then + if data.raw.item["titanium-plate"] and data.raw.item["titanium-plate"] then + SimpleCompress_AddSmeltingRecipe("titanium-ore", "titanium-plate") + SimpleCompress_UnlockOreSmeltingTech("titanium-ore") + local titaniumRecipe = data.raw.recipe["smelt-compressed-titanium-ore"] + titaniumRecipe.ingredients = {{"compressed-titanium-ore", 5}} + end + end +end + +