shiftite
This commit is contained in:
parent
0bdc3143ff
commit
3d571fc3f7
4 changed files with 37 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -21,3 +21,5 @@ if mods["any-planet-start"] then
|
|||
{"chemical-science-pack", 1},
|
||||
})
|
||||
end
|
||||
|
||||
util.add_shiftite_recipe("titanium-plate", "beta", 2)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bztitanium",
|
||||
"version": "2.0.19",
|
||||
"version": "2.0.20",
|
||||
"factorio_version": "2.0",
|
||||
"title": "Titanium",
|
||||
"author": "Brevven",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue