From d6d3bfcd3f49321c29ed9d9f538388fbc460e591 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 27 Jan 2026 22:28:05 +0100 Subject: [PATCH] Add Space Age specific ingredient --- pollution-module/data.lua | 8 +++++++- pollution-module/info.json | 21 +++++++++++---------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/pollution-module/data.lua b/pollution-module/data.lua index da9d6cb..abba3a7 100644 --- a/pollution-module/data.lua +++ b/pollution-module/data.lua @@ -180,4 +180,10 @@ data:extend({ }, upgrade = true } -}) \ No newline at end of file +}) + +if mods["space-age"] then + table.insert(data.raw.recipe["pollution-module-3"].ingredients, {type = "item", name = "carbon", amount = 5}) + table.insert(data.raw.technology["pollution-module-3"].prerequisites, "space-science-pack") + table.insert(data.raw.technology["pollution-module-3"].unit.ingredients, { "space-science-pack", 1 }) +end \ No newline at end of file diff --git a/pollution-module/info.json b/pollution-module/info.json index e4c5897..7503b51 100644 --- a/pollution-module/info.json +++ b/pollution-module/info.json @@ -1,12 +1,13 @@ { - "name": "pollution-module", - "version": "1.0.2", - "title": "Pollution module", - "description": "Adds pollution modules.", - "author": "cackling fiend", - "homepage": "https://discord.gg/ufvFUJtVwk", - "factorio_version": "2.0", - "dependencies": [ - "base" - ] + "name": "pollution-module", + "version": "1.0.2", + "title": "Pollution module", + "description": "Adds pollution modules.", + "author": "cackling fiend", + "homepage": "https://discord.gg/ufvFUJtVwk", + "factorio_version": "2.0", + "dependencies": [ + "base", + "? space-age" + ] } \ No newline at end of file