tenebris
This commit is contained in:
parent
11af553420
commit
c4ad996a8d
4 changed files with 21 additions and 3 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 2.0.9
|
||||||
|
Date: 2024-12-28
|
||||||
|
Changes:
|
||||||
|
- Compatible with Tenebris
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 2.0.8
|
Version: 2.0.8
|
||||||
Date: 2024-12-28
|
Date: 2024-12-28
|
||||||
Fixes:
|
Fixes:
|
||||||
|
|
|
||||||
|
|
@ -96,15 +96,22 @@ function util.warptorio2_expansion_helper()
|
||||||
end
|
end
|
||||||
|
|
||||||
function util.ore_fix()
|
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
|
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
|
if map_gen_settings.autoplace_controls[resource] == nil then
|
||||||
map_gen_settings.autoplace_controls[resource] = {}
|
map_gen_settings.autoplace_controls[resource] = {}
|
||||||
end
|
end
|
||||||
if map_gen_settings.autoplace_settings.entity.settings[resource] == nil then
|
if map_gen_settings.autoplace_settings.entity.settings[resource] == nil then
|
||||||
map_gen_settings.autoplace_settings.entity.settings[resource] = {}
|
map_gen_settings.autoplace_settings.entity.settings[resource] = {}
|
||||||
end
|
end
|
||||||
game.surfaces.nauvis.map_gen_settings = map_gen_settings
|
game.surfaces[surface_name].map_gen_settings = map_gen_settings
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bztitanium",
|
"name": "bztitanium",
|
||||||
"version": "2.0.8",
|
"version": "2.0.9",
|
||||||
"factorio_version": "2.0",
|
"factorio_version": "2.0",
|
||||||
"title": "Titanium",
|
"title": "Titanium",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
"? EndgameCombat",
|
"? EndgameCombat",
|
||||||
"(?) Power Armor MK3",
|
"(?) Power Armor MK3",
|
||||||
"? 248k",
|
"? 248k",
|
||||||
|
"? tenebris",
|
||||||
"(?) atan-nuclear-science",
|
"(?) atan-nuclear-science",
|
||||||
"! nullius"
|
"! nullius"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,11 @@ end
|
||||||
data.raw.planet.nauvis.map_gen_settings.autoplace_controls["titanium-ore"] = {}
|
data.raw.planet.nauvis.map_gen_settings.autoplace_controls["titanium-ore"] = {}
|
||||||
data.raw.planet.nauvis.map_gen_settings.autoplace_settings.entity.settings["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
|
if (not mods["pyrawores"]) then
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue