From 10ebbb6f4555e0fe530d620f6a3ab4532e1055c9 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sun, 26 Jun 2022 01:02:24 -0700 Subject: [PATCH] 248k --- changelog.txt | 6 ++++++ compatibility/248k.lua | 18 ++++++++++++++++++ data-updates.lua | 1 + info.json | 3 ++- migrations/bztitanium.1.1.0.json | 7 +++++++ titanium-recipe.lua | 1 - 6 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 compatibility/248k.lua create mode 100644 migrations/bztitanium.1.1.0.json diff --git a/changelog.txt b/changelog.txt index 0aaf36d..43089ce 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 + Titanium plate items merged into one. Multiple production chains +--------------------------------------------------------------------------------------------------- Version: 1.0.9 Date: 2022-05-25 Features: diff --git a/compatibility/248k.lua b/compatibility/248k.lua new file mode 100644 index 0000000..6bfd775 --- /dev/null +++ b/compatibility/248k.lua @@ -0,0 +1,18 @@ +local util = require("data-util"); + +local ti2 = "fi_materials_titan" + + +-- Swap out all 248k titanium for BZ titanium_plate +for i, recipe in pairs(data.raw.recipe) do + util.replace_ingredient(recipe.name, ti2, util.titanium_plate) + util.replace_product(recipe.name, ti2, util.titanium_plate) +end + +-- Remove 248k titanium plate +util.remove_raw("item", ti2) + +-- Update 248k titanium production chain to include titanium ore +util.add_ingredient("fi_pure_titan_recipe", "titanium-ore", 10) +util.add_to_product("fi_pure_titan_recipe", "fi_materials_pure_titan", 2) + diff --git a/data-updates.lua b/data-updates.lua index 2998b0b..d63f114 100644 --- a/data-updates.lua +++ b/data-updates.lua @@ -4,3 +4,4 @@ require("titanium-matter") require("omni") require("map-gen-preset-updates") require("strange-matter") +require("compatibility/248k") diff --git a/info.json b/info.json index 53e7900..7e33d0b 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bztitanium", - "version": "1.0.9", + "version": "1.1.0", "factorio_version": "1.1", "title": "Titanium", "author": "Brevven", @@ -20,6 +20,7 @@ "? modmashsplinterresources", "? EndgameCombat", "(?) Power Armor MK3", + "? 248k", "! nullius" ], "description": "Adds titanium to the base game.\n\nTitanium is used in Low Density Structures, Flying Robot Frames and a few other places.\n\nCompatible with Krastorio 2, Space Exploration, Aircraft, 5Dim's, FE+ and other mods. A standalone piece of BZ Mods.\n\nWith graphics by snouz." diff --git a/migrations/bztitanium.1.1.0.json b/migrations/bztitanium.1.1.0.json new file mode 100644 index 0000000..684ed29 --- /dev/null +++ b/migrations/bztitanium.1.1.0.json @@ -0,0 +1,7 @@ +{ + "item": + [ + ["fi_materials_titan", "titanium-plate"] + ] +} + diff --git a/titanium-recipe.lua b/titanium-recipe.lua index 926932f..a38f6a2 100644 --- a/titanium-recipe.lua +++ b/titanium-recipe.lua @@ -118,4 +118,3 @@ data:extend({ } or nil, }) end -