some minor compat updates

This commit is contained in:
Brevven 2025-02-09 15:25:33 -08:00
parent e310e144b2
commit fd10bcba94
5 changed files with 37 additions and 3 deletions

View file

@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 2.0.7
Date: 2025-02-01
Changes:
- Minor compatibility updates
---------------------------------------------------------------------------------------------------
Version: 2.0.6
Date: 2025-01-29
Changes:

View file

@ -173,7 +173,7 @@ function regenerate_ore(event)
game.print("Could not find surface for "..planet..". May not exist, or may not yet be explored.")
return
end
if resource[1] == params[2] and resource[2] == planet then
if resource[1] == params[2] and (resource[2] == planet or "tenebris" == planet) then
if #params == 5 then
local settings = {frequency=params[3], size=params[4], richness=params[5]}
local map_gen_settings = game.surfaces[planet].map_gen_settings

View file

@ -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

View file

@ -1,6 +1,6 @@
{
"name": "bzsilicon",
"version": "2.0.6",
"version": "2.0.7",
"factorio_version": "2.0",
"title": "Silica & Silicon",
"author": "Brevven",

View file

@ -11,7 +11,7 @@ if mods.bzcarbon then
table.insert(gyro_ingredients, util.item("diamond", 1))
table.insert(gyro_prereqs, "diamond-processing")
end
if mods.bztungsten then
if mods.bztungsten and not mods["space-age"] then
table.insert(gyro_ingredients, util.item("tungsten-plate", 1))
table.insert(gyro_prereqs, "tungsten-processing")
elseif mods.bztitanium then