From e2621dc9a4b24d96d6207d0f81c80844a1828c26 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sun, 26 Jun 2022 01:03:29 -0700 Subject: [PATCH] 248k --- changelog.txt | 6 ++++++ compatibility/248k.lua | 18 ++++++++++++++++++ data-updates.lua | 1 + info.json | 3 ++- migrations/bzlead.1.1.0.json | 7 +++++++ 5 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 compatibility/248k.lua create mode 100644 migrations/bzlead.1.1.0.json diff --git a/changelog.txt b/changelog.txt index 76c677f..f6e54c7 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,10 @@ --------------------------------------------------------------------------------------------------- +Version: 1.1.0 +Date: 2022-06-26 + Features: + - Beta support for 248k. This is an initial release and may change in the future + Lead plate items merged into one. Multiple production chains +--------------------------------------------------------------------------------------------------- Version: 1.0.5 Date: 2022-06-01 Fixes: diff --git a/compatibility/248k.lua b/compatibility/248k.lua new file mode 100644 index 0000000..b7efd6a --- /dev/null +++ b/compatibility/248k.lua @@ -0,0 +1,18 @@ +local util = require("data-util"); + +local pb2 = "fu_lead_item" + + +-- Swap out all 248k titanium for BZ titanium_plate +for i, recipe in pairs(data.raw.recipe) do + util.replace_ingredient(recipe.name, pb2, "lead-plate") + util.replace_product(recipe.name, pb2, "lead-plate") +end + +-- Remove 248k titanium plate +util.remove_raw("item", pb2) + +-- Update 248k titanium production chain to include titanium ore +util.add_ingredient("fu_pure_ore_recipe", "lead-ore", 5) +util.add_to_product("fu_pure_ore_recipe", "fi_materials_pure_lead", 5) + diff --git a/data-updates.lua b/data-updates.lua index d28c4b0..a50bc70 100644 --- a/data-updates.lua +++ b/data-updates.lua @@ -3,3 +3,4 @@ require("lead-matter") require("omni") require("map-gen-preset-updates") require("strange-matter") +require("compatibility/248k") diff --git a/info.json b/info.json index 92f029b..7234da2 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzlead", - "version": "1.0.5", + "version": "1.1.0", "factorio_version": "1.1", "title": "Lead", "author": "Brevven", @@ -12,6 +12,7 @@ "? space-exploration", "? Krastorio2", "? Rich-Rocks-Requiem", + "? 248k", "? deadlock-beltboxes-loaders", "? DeadlockCrating" ], diff --git a/migrations/bzlead.1.1.0.json b/migrations/bzlead.1.1.0.json new file mode 100644 index 0000000..05c8ea3 --- /dev/null +++ b/migrations/bzlead.1.1.0.json @@ -0,0 +1,7 @@ +{ + "item": + [ + ["fu_lead_item", "lead-plate"] + ] +} +