Merge pull request #1 from Atraxi/metal-and-stars-compatibility

Metal and stars compatibility
This commit is contained in:
SimonBrodtmann 2025-01-22 18:47:40 +01:00 committed by GitHub
commit 42c5d177d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 3 deletions

View file

@ -18,6 +18,7 @@
"Wood-Walls >= 1.2.0",
"?hot-metals >= 1.1.0",
"?wood-military >= 2.3.3",
"?metal-and-stars",
"!apm_power_ldinc",
"!alien-biomes",
"!wood-logistics",

View file

@ -1,2 +1,3 @@
require("hot-metals")
require("wood-military")
require("wood-military")
require("metal-and-stars")

View file

@ -0,0 +1,8 @@
if not mods["metal-and-stars"] then
return
end
data.raw.recipe["gold-plate"].enabled = true
data.raw.recipe["gold-cable"].enabled = true
data.raw.item["gold-plate"].icon = "__lignumis__/graphics/icons/gold-plate.png"

View file

@ -5,7 +5,7 @@ for _, technology in pairs(data.raw.technology) do
if technology.unit and technology.unit.ingredients and not table.contains(Lignumis.science_blacklist, technology.name) then
local ingredients = technology.unit.ingredients
local noMatches = table.filter(ingredients, function(ingredient)
return table.contains({ "wood-science-pack", "steam-science-pack" }, ingredient[1])
return table.contains({ "wood-science-pack", "steam-science-pack", "nanite-science-pack", "quantum-science-pack", "ring-science-pack" }, ingredient[1])
end)
local yesMatches = table.filter(ingredients, function(ingredient)
return table.contains({ "utility-science-pack", "production-science-pack", "space-science-pack" }, ingredient[1])
@ -15,4 +15,4 @@ for _, technology in pairs(data.raw.technology) do
table.insert(technology.unit.ingredients, { "steam-science-pack", 1 })
end
end
end
end