From 97f87df1f4b8a8142b228458be3390cdcf374506 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Fri, 20 Feb 2026 15:05:33 +0100 Subject: [PATCH] K2: Add dirty water filtration --- Limestone2/data.lua | 3 +- Limestone2/locale/en/Limestone.cfg | 1 + Limestone2/prototypes/k2.lua | 48 ++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 Limestone2/prototypes/k2.lua diff --git a/Limestone2/data.lua b/Limestone2/data.lua index 21e9b02..97155bf 100644 --- a/Limestone2/data.lua +++ b/Limestone2/data.lua @@ -1,3 +1,4 @@ require("prototypes.limestone-ore") require("prototypes.calcium-recipe") -require("prototypes.technology") \ No newline at end of file +require("prototypes.technology") +require("prototypes.k2") \ No newline at end of file diff --git a/Limestone2/locale/en/Limestone.cfg b/Limestone2/locale/en/Limestone.cfg index fd999f2..29f3306 100644 --- a/Limestone2/locale/en/Limestone.cfg +++ b/Limestone2/locale/en/Limestone.cfg @@ -33,5 +33,6 @@ limestone-stone=Limestone to stone calcium-battery=Calcium battery bio-advanced-solar-panel=Bio advanced solar panel calcium-chloride-water-reaction=Calcium chloride water reaction +dirty-water-filtration-limestone=Filter dirty water [item=limestone] [recipe-description] \ No newline at end of file diff --git a/Limestone2/prototypes/k2.lua b/Limestone2/prototypes/k2.lua new file mode 100644 index 0000000..6a45397 --- /dev/null +++ b/Limestone2/prototypes/k2.lua @@ -0,0 +1,48 @@ +if not mods["Krastorio2"] then + return +end + +data:extend({ + { + type = "recipe", + name = "dirty-water-filtration-limestone", + category = "kr-fluid-filtration", + icons = { + { + icon = data.raw.fluid["kr-dirty-water"].icon, + icon_size = data.raw.fluid["kr-dirty-water"].icon_size + }, + { + icon = data.raw.item["limestone"].icon, + icon_size = data.raw.item["limestone"].icon_size, + scale = 0.20, + shift = { 0, 4 } + } + }, + icon_size = data.raw.fluid["kr-dirty-water"].icon_size, + energy_required = 2, + enabled = false, + allow_as_intermediate = false, + always_show_made_in = true, + always_show_products = true, + ingredients = { + { type = "fluid", name = "kr-dirty-water", amount = 100, catalyst_amount = 100 }, + }, + results = { + { type = "fluid", name = "water", amount = 90, catalyst_amount = 90 }, + { type = "item", name = "stone", probability = 0.30, amount = 1 }, + { type = "item", name = "limestone", probability = 0.20, amount = 1 }, + }, + crafting_machine_tint = { + primary = { r = 0.60, g = 0.20, b = 0, a = 0.6 }, + secondary = { r = 1.0, g = 0.843, b = 0.0, a = 0.9 } + }, + subgroup = "raw-material", + order = "w013[dirty-water-filtration-aluminum]" + } +}) + +table.insert(data.raw.technology["kr-enriched-ores"].effects, { + type = "unlock-recipe", + recipe = "dirty-water-filtration-limestone" +}) \ No newline at end of file