diff --git a/changelog.txt b/changelog.txt index 832e519..2a92844 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.20 +Date: 2025-02-01 + Changes: + - Add shiftite recipe for Janus mod +--------------------------------------------------------------------------------------------------- Version: 2.0.19 Date: 2025-01-25 Fixes: diff --git a/data-updates.lua b/data-updates.lua index e9e22a9..545a22b 100644 --- a/data-updates.lua +++ b/data-updates.lua @@ -21,3 +21,5 @@ if mods["any-planet-start"] then {"chemical-science-pack", 1}, }) end + +util.add_shiftite_recipe("titanium-plate", "beta", 2) diff --git a/data-util.lua b/data-util.lua index 9b471b3..0560a31 100644 --- a/data-util.lua +++ b/data-util.lua @@ -127,6 +127,35 @@ function util.copy_recipe(recipe_name, new_recipe_name) end end +function util.add_shiftite_recipe(item, shiftites, quantity) + if not mods["janus"] then return end + if not data.raw.item[item] then return end + local its = {} + for _, shiftite in pairs(shiftites) do + local it = "janus-shiftite-"..shiftite + if data.raw.item[it] then + table.insert(its, util.item(it, quantity)) + end + end + if its then + local name = "shiftite-to-"..item + data:extend({{ + type = "recipe", + name = name, + localised_name = {"", {"item-name."..item}, " ← Shiftite"}, + category = "janus-shiftite", + subgroup = "janus-basic-from-shiftite", + ingredients = its, + results = {util.item(item, 5)}, + energy_required = 2.5, + order = "zzz", + enabled = false, + auto_recycle = false, + }}) + util.add_unlock("janus-time-distorter", name) + end +end + -- Add the gleba rock. If it exists, still add resource to mine from it function util.add_gleba_rock(resource, amount_min, amount_max) if (not data.raw.planet.gleba or diff --git a/info.json b/info.json index 676df9a..2f57b56 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bztitanium", - "version": "2.0.19", + "version": "2.0.20", "factorio_version": "2.0", "title": "Titanium", "author": "Brevven",