From 4d6c474c0f6b8d036ac55ab81d053e3b2e2ca666 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sun, 22 Dec 2024 18:57:35 -0800 Subject: [PATCH] titanium on gleba --- locale/en/titanium.cfg | 2 ++ titanium-recipe-updates.lua | 1 + titanium-recipe.lua | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) diff --git a/locale/en/titanium.cfg b/locale/en/titanium.cfg index 0dfb9dd..f5099fc 100644 --- a/locale/en/titanium.cfg +++ b/locale/en/titanium.cfg @@ -36,10 +36,12 @@ dirty-water-filtration-titanium=Filter dirty water [item=titanium-ore] titanium-ore-from-stone=__ITEM__titanium-ore__ from stone titanium-sublimation=Titanium sublimation titanium-in-foundry=__ITEM__titanium-plate__ +titanium-extraction=Titanium extraction [recipe-description] enriched-titanium=Enrich titanium ore, purifying with hydrogen chloride [fluid=hydrogen-chloride] and water [fluid=water], improving the final yield. Produce dirty water [fluid=dirty-water] as a byproduct. dirty-water-filtration-titanium=Filter dirty water, giving titanium ore [item=titanium-ore] and stone [item=stone] (probabilistically). +titanium-extraction=Extract titanium by causing jellynut to rot in a controlled environment titanium-in-foundry=Smelt titanium in an oxygen-free environment diff --git a/titanium-recipe-updates.lua b/titanium-recipe-updates.lua index 24a3a9e..afecec4 100644 --- a/titanium-recipe-updates.lua +++ b/titanium-recipe-updates.lua @@ -12,6 +12,7 @@ if mods["space-age"] then util.add_unlock("foundry", "titanium-sublimation") util.add_unlock("foundry", "titanium-in-foundry") util.add_unlock("foundry", "titanium-ore-from-stone") + util.add_unlock("jellynut", "titanium-extraction") -- In Space Age progression, it makes sense to insert titanium at this point in belts and inserters util.replace_ingredient("express-transport-belt", "iron-gear-wheel", "titanium-plate", 2) diff --git a/titanium-recipe.lua b/titanium-recipe.lua index 9ba1505..fd4e191 100644 --- a/titanium-recipe.lua +++ b/titanium-recipe.lua @@ -168,5 +168,42 @@ data:extend({ auto_barrel = false, }, + { + type = "recipe", + name = "titanium-extraction", + category = "organic-or-hand-crafting", + icons = { + { icon = "__space-age__/graphics/icons/jellynut.png", icon_size = 64, scale = 0.5, shift = {-4, -6}}, + { icon = "__bztitanium__/graphics/icons/titanium-ore.png", icon_size = 64, scale = 0.5, icon_mipmaps = 3, shift = {4,6}}, + }, + surface_conditions = + { + { + property = "pressure", + min = 2000, + max = 2000 + } + }, + subgroup = "agriculture-processes", + order = "e[bacteria]-a[bacteria]-b[titanium]", + enabled = false, + allow_productivity = true, + energy_required = 6, + ingredients = + { + {type = "item", name = "jellynut", amount = 1}, + {type = "item", name = "spoilage", amount = 9}, + }, + results = + { + {type = "item", name = "titanium-ore", amount = 5}, + {type = "item", name = "spoilage", amount = 10} + }, + crafting_machine_tint = + { + primary = {r = 0.1, g = 0.5, b = 0.5, a = 1}, + secondary = {r = 0.1, g = 0.2, b = 0.3, a = 1}, + } + }, }) end