This commit is contained in:
Brevven 2025-01-31 02:26:29 -08:00
parent 0bdc3143ff
commit 3d571fc3f7
4 changed files with 37 additions and 1 deletions

View file

@ -1,4 +1,9 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 2.0.20
Date: 2025-02-01
Changes:
- Add shiftite recipe for Janus mod
---------------------------------------------------------------------------------------------------
Version: 2.0.19 Version: 2.0.19
Date: 2025-01-25 Date: 2025-01-25
Fixes: Fixes:

View file

@ -21,3 +21,5 @@ if mods["any-planet-start"] then
{"chemical-science-pack", 1}, {"chemical-science-pack", 1},
}) })
end end
util.add_shiftite_recipe("titanium-plate", "beta", 2)

View file

@ -127,6 +127,35 @@ function util.copy_recipe(recipe_name, new_recipe_name)
end end
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 -- Add the gleba rock. If it exists, still add resource to mine from it
function util.add_gleba_rock(resource, amount_min, amount_max) function util.add_gleba_rock(resource, amount_min, amount_max)
if (not data.raw.planet.gleba or if (not data.raw.planet.gleba or

View file

@ -1,6 +1,6 @@
{ {
"name": "bztitanium", "name": "bztitanium",
"version": "2.0.19", "version": "2.0.20",
"factorio_version": "2.0", "factorio_version": "2.0",
"title": "Titanium", "title": "Titanium",
"author": "Brevven", "author": "Brevven",