From 3ed27817204bb723a7833ecb6e6c03b331130c97 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sat, 3 May 2025 03:48:32 -0700 Subject: [PATCH] aps --- carbon-recipe.lua | 6 ++++++ changelog.txt | 5 +++++ data-util.lua | 2 +- info.json | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/carbon-recipe.lua b/carbon-recipe.lua index 2a8b985..29922a9 100644 --- a/carbon-recipe.lua +++ b/carbon-recipe.lua @@ -574,6 +574,12 @@ data:extend({ }, }) +if util.me.get_setting("aps-planet") == "vulcanus" then + util.add_unlock("foundry", "crucible") + util.remove_recipe_effect("advanced-material-processing-2", "crucible") +end + + -- Space exploration subgroups if mods["space-exploration"] and string.sub(mods["space-exploration"], 1, 3) == "0.6" then data:extend({ diff --git a/changelog.txt b/changelog.txt index c477844..f9c6ead 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.16 +Date: 2025-04-20 + Changes: + - Any planet start on Vulcanus: Unlock crucible with foundry tech. +--------------------------------------------------------------------------------------------------- Version: 2.0.15 Date: 2025-04-19 Fixes: diff --git a/data-util.lua b/data-util.lua index f121833..0e48dbf 100644 --- a/data-util.lua +++ b/data-util.lua @@ -1330,7 +1330,7 @@ end -- Replace one product with another in a recipe function util.replace_product(recipe_name, old, new, options) if not should_force(options) and bypass(recipe_name) then return end - if data.raw.recipe[recipe_name] then + if data.raw.recipe[recipe_name] and (data.raw.item[new] or data.raw.fluid[new]) then replace_product(data.raw.recipe[recipe_name], old, new, options) end end diff --git a/info.json b/info.json index d4cd6f9..d79aaf7 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzcarbon", - "version": "2.0.15", + "version": "2.0.16", "factorio_version": "2.0", "title": "Graphite & Diamonds", "author": "Brevven",