diff --git a/changelog.txt b/changelog.txt index 0c8540e..d6fc7d7 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.10.1 +Date: 2021-03-09 + Features: + - SimpleCompress support +--------------------------------------------------------------------------------------------------- Version: 0.10.0 Date: 2021-03-08 Changes: diff --git a/data.lua b/data.lua index 7662af7..47fb460 100644 --- a/data.lua +++ b/data.lua @@ -3,4 +3,5 @@ require("titanium-ore-particle") require("titanium-recipe") require("titanium-enriched") -- Enriched Ti for Krastorio 2 require("titanium-recipe-se") -- Space Exploration special recipes (depends on K2 if present) +require("titanium-compressed") diff --git a/info.json b/info.json index a6c8f73..21217e0 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bztitanium", - "version": "0.10.0", + "version": "0.10.1", "factorio_version": "1.1", "title": "Titanium", "author": "Brevven", diff --git a/locale/en/titanium.cfg b/locale/en/titanium.cfg index 09e51a6..f5fa7a2 100644 --- a/locale/en/titanium.cfg +++ b/locale/en/titanium.cfg @@ -10,6 +10,7 @@ titanium-dust=Titanium dust titanium-plate=Titanium plate titanium-alloy=__ITEM__titanium-plate__ enriched-titanium=Enriched titanium +compressed-titanium-ore=Compressed titanium ore [item-description] titanium-ore=Can be smelted into titanium plates diff --git a/titanium-compressed.lua b/titanium-compressed.lua new file mode 100644 index 0000000..5f01f91 --- /dev/null +++ b/titanium-compressed.lua @@ -0,0 +1,29 @@ +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 + local titaniumRecipe = data.raw.recipe["decompress-titanium-plate"] + titaniumRecipe.order = "d[titanium-plate]" + 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}} + titaniumRecipe.order = "d[titanium-plate]" + end + end +end + +