Add support for AAI Loaders

This commit is contained in:
Simon Brodtmann 2025-02-26 19:48:46 +01:00
parent d5ccdd3268
commit d22251cd2d
4 changed files with 55 additions and 1 deletions

View file

@ -25,6 +25,7 @@
"?aai-industry",
"?planet-picker",
"?Diversitree",
"?aai-loaders",
"!apm_power_ldinc",
"!wood-logistics",
"!early-agriculture",

View file

@ -44,6 +44,7 @@ wood-splitter=Wood splitter
basic-radar=Basic radar
active-noise-cancelling-tower=Active noise cancelling tower
quality-assembler=Quality assembler
aai-wood-loader=Wood loader
[entity-description]
lumber-mill=Advanced machine to process wood.

View file

@ -0,0 +1,51 @@
local Recipe = require("__cf-lib__/data/Recipe")
local Technology = require("__cf-lib__/data/Technology")
if not mods["aai-loaders"] then return end
local recipe = {
ingredients = {
{ type = "item", name = "lumber", amount = 5 },
{ type = "item", name = "gold-cable", amount = 10 },
{ type = "item", name = "wood-transport-belt", amount = 1 }
},
energy_required = 1
}
AAILoaders.make_tier({
name = "wood",
transport_belt = "wood-transport-belt",
color = { 163, 117, 102 },
fluid = "steam",
fluid_per_minute = 7.5,
fluid_technology_prerequisites = { "gold-fluid-handling" },
technology = {
unit = {
count = 25,
ingredients = { { "wood-science-pack", 1 } },
time = 15
},
prerequisites = { "wood-logistics" }
},
recipe = recipe,
unlubricated_recipe = mods["aai-loaders-sane"] and recipe or {
ingredients = {
{ type = "item", name = "lumber", amount = 50 },
{ type = "item", name = "gold-cable", amount = 100 },
{ type = "item", name = "wood-transport-belt", amount = 1 }
},
energy_required = 5
},
next_upgrade = "aai-loader",
localise = false
})
local nauvis_recipe = Recipe:new("aai-wood-loader"):clone("wood-loader-electronic-circuit")
nauvis_recipe:replaceIngredient("gold-cable", "electronic-circuit")
nauvis_recipe:unlockedByTechnology("electronics")
nauvis_recipe:apply()
if mods["aai-loaders-sane"] then
Technology:new("wood-logistics"):addRecipe("aai-wood-loader")
data.raw.technology["aai-wood-loader"] = nil
end

View file

@ -2,4 +2,5 @@ require("hot-metals")
require("wood-military")
require("metal-and-stars")
require("alien-biomes")
require("planet-picker")
require("planet-picker")
require("aai-loaders")