This commit is contained in:
Brevven 2024-12-28 22:08:38 -08:00
parent 11af553420
commit c4ad996a8d
4 changed files with 21 additions and 3 deletions

View file

@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 2.0.9
Date: 2024-12-28
Changes:
- Compatible with Tenebris
---------------------------------------------------------------------------------------------------
Version: 2.0.8
Date: 2024-12-28
Fixes:

View file

@ -96,15 +96,22 @@ function util.warptorio2_expansion_helper()
end
function util.ore_fix()
ore_fix("nauvis")
if game.surfaces.tenebris then
ore_fix("tenebris")
end
end
function ore_fix(surface_name)
for _, resource in pairs(me.resources) do
local map_gen_settings = game.surfaces.nauvis.map_gen_settings
local map_gen_settings = game.surfaces[surface_name].map_gen_settings
if map_gen_settings.autoplace_controls[resource] == nil then
map_gen_settings.autoplace_controls[resource] = {}
end
if map_gen_settings.autoplace_settings.entity.settings[resource] == nil then
map_gen_settings.autoplace_settings.entity.settings[resource] = {}
end
game.surfaces.nauvis.map_gen_settings = map_gen_settings
game.surfaces[surface_name].map_gen_settings = map_gen_settings
end
end

View file

@ -1,6 +1,6 @@
{
"name": "bztitanium",
"version": "2.0.8",
"version": "2.0.9",
"factorio_version": "2.0",
"title": "Titanium",
"author": "Brevven",
@ -21,6 +21,7 @@
"? EndgameCombat",
"(?) Power Armor MK3",
"? 248k",
"? tenebris",
"(?) atan-nuclear-science",
"! nullius"
],

View file

@ -8,6 +8,11 @@ end
data.raw.planet.nauvis.map_gen_settings.autoplace_controls["titanium-ore"] = {}
data.raw.planet.nauvis.map_gen_settings.autoplace_settings.entity.settings["titanium-ore"] = {}
if mods.tenebris then
data.raw.planet.tenebris.map_gen_settings.autoplace_controls["titanium-ore"] = {}
data.raw.planet.tenebris.map_gen_settings.autoplace_settings.entity.settings["titanium-ore"] = {}
end
if (not mods["pyrawores"]) then
data:extend({
{