diff --git a/changelog.txt b/changelog.txt index 09644da..4978ea3 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,8 @@ --------------------------------------------------------------------------------------------------- Version: 0.5.3 Date: 2020-09-20 + Changes: + - Krastorio 2 compatibility: matter conversion for titanium Settings: - Allow some choice of mining fluid. --------------------------------------------------------------------------------------------------- diff --git a/data-updates.lua b/data-updates.lua index dace4f0..bf19cef 100644 --- a/data-updates.lua +++ b/data-updates.lua @@ -1 +1,2 @@ require("titanium-recipe-updates") +require("titanium-matter") diff --git a/locale/en/ore-refining.cfg b/locale/en/ore-refining.cfg index b541761..6eb6979 100644 --- a/locale/en/ore-refining.cfg +++ b/locale/en/ore-refining.cfg @@ -16,6 +16,7 @@ enriched-titanium=Can be efficiently smelted into titanium plates [technology-name] titanium-processing=Titanium Processing enriched-titanium=Enriched Titanium +titanium-matter-processing=Titanium conversion [technology-description] titanium-processing=Process titanium ore into titanium plates diff --git a/titanium-matter.lua b/titanium-matter.lua new file mode 100644 index 0000000..e741985 --- /dev/null +++ b/titanium-matter.lua @@ -0,0 +1,63 @@ +-- Matter recipes for Krastorio2 +if mods["Krastorio2"] then +local matter = require("__Krastorio2__/lib/public/data-stages/matter-util") + +data:extend( +{ + { + type = "technology", + name = "titanium-matter-processing", + icons = + { + { + icon = "__Krastorio2__/graphics/technologies/matter-stone.png", + icon_size = 128, + }, + { + icon = "__bztitanium__/graphics/icons/titanium-ore.png", + icon_size = 32, + scale = 1.7, + } + }, + prerequisites = {"kr-matter-processing"}, + unit = + { + count = 350, + ingredients = + { + {"production-science-pack", 1}, + {"utility-science-pack", 1}, + {"matter-tech-card", 1} + }, + time = 45 + } + }, +}) + +local titanium_ore_matter = + { + item_name = "titanium-ore", + minimum_conversion_quantity = 10, + matter_value = 8, + energy_required = 1, + need_stabilizer = true, + unlocked_by_technology = "titanium-matter-processing" + } +matter.createMatterRecipe(titanium_ore_matter) + + +local titanium_plate_matter = + { + item_name = "titanium-ore", + minimum_conversion_quantity = 10, + matter_value = 14, + energy_required = 1, + need_stabilizer = true, + unlocked_by_technology = "titanium-matter-processing" + } +matter.createMatterRecipe(titanium_ore_matter) + + + + +end