Add compatibility with AAI Industry

This commit is contained in:
Simon Brodtmann 2025-02-14 22:24:59 +01:00
parent 6f38b60694
commit eef791aad3
6 changed files with 39 additions and 15 deletions

View file

@ -83,8 +83,6 @@ If your modded lab is special and it should not support these science packs, use
- Improve transition to Nauvis a bit more
- Add late-game recipe for oil from wood pulp
- Replace usage of gold cable with basic circuits made of wood and gold cable, add option for progressive circuit recipes and add recipe prod research
- Compatibility with [Amator Phasma's Coal & Steam (forked)](https://mods.factorio.com/mod/apm_power_ldinc)
- Compatibility with [AAI Industry](https://mods.factorio.com/mod/aai-industry)
- Compatibility with [On Wayward Seas](https://mods.factorio.com/mod/wayward-seas)
- Compatibility with [Planet Picker](https://mods.factorio.com/mod/planet-picker)
- Compatibility with [Noble Metals](https://mods.factorio.com/mod/bzgold) once it's updated

View file

@ -1,2 +1,3 @@
require("prototypes/content/updates")
require("prototypes/integrations/updates")
require("prototypes/integrations/updates")
require("prototypes/compatibility/updates")

View file

@ -21,10 +21,10 @@
"?hot-metals >= 1.1.0",
"?wood-military >= 2.3.3",
"?metal-and-stars",
"?aai-industry",
"!apm_power_ldinc",
"!wood-logistics",
"!early-agriculture",
"!wood-universe-modpack",
"!aai-industry"
"!wood-universe-modpack"
]
}

View file

@ -0,0 +1,19 @@
local Technology = require("__cf-lib__/data/Technology")
if not mods["aai-industry"] then return end
local burner_mechanics = Technology:new("burner-mechanics")
burner_mechanics:addPrerequisite("iron-processing")
burner_mechanics:removeRecipe("burner-inserter")
burner_mechanics:removeRecipe("burner-mining-drill")
burner_mechanics:removeRecipe("burner-assembling-machine")
data.raw.recipe["burner-inserter"].enabled = true
data.raw.recipe["burner-mining-drill"].enabled = true
local burner_automation = Technology:new("burner-automation")
burner_automation:addRecipe("burner-assembling-machine")
local wall = data.raw["wall"]["concrete-wall"]
wall.emissions_per_second = wall.emissions_per_second or {}
wall.emissions_per_second.noise = -30 / 60

View file

@ -0,0 +1 @@
require("aai-industry")

View file

@ -13,16 +13,21 @@ data:extend({
default_value = true,
order = "b"
},
{
type = "bool-setting",
name = "lignumis-ammo-progression",
setting_type = "startup",
default_value = true,
order = "c"
}
})
if not mods["wood-military"] then
data:extend({
{
type = "bool-setting",
name = "lignumis-ammo-progression",
setting_type = "startup",
default_value = true,
order = "c"
}
})
if mods["aai-industry"] then
data.raw["bool-setting"]["lignumis-inserter-progression"].forced_value = false
data.raw["bool-setting"]["lignumis-inserter-progression"].hidden = true
end
if mods["wood-military"] then
data.raw["bool-setting"]["lignumis-ammo-progression"].forced_value = false
data.raw["bool-setting"]["lignumis-ammo-progression"].hidden = true
end