Merge pull request #1 from Atraxi/metal-and-stars-compatibility
Metal and stars compatibility
This commit is contained in:
commit
42c5d177d2
4 changed files with 13 additions and 3 deletions
|
@ -18,6 +18,7 @@
|
||||||
"Wood-Walls >= 1.2.0",
|
"Wood-Walls >= 1.2.0",
|
||||||
"?hot-metals >= 1.1.0",
|
"?hot-metals >= 1.1.0",
|
||||||
"?wood-military >= 2.3.3",
|
"?wood-military >= 2.3.3",
|
||||||
|
"?metal-and-stars",
|
||||||
"!apm_power_ldinc",
|
"!apm_power_ldinc",
|
||||||
"!alien-biomes",
|
"!alien-biomes",
|
||||||
"!wood-logistics",
|
"!wood-logistics",
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
require("hot-metals")
|
require("hot-metals")
|
||||||
require("wood-military")
|
require("wood-military")
|
||||||
|
require("metal-and-stars")
|
8
lignumis/prototypes/compatibility/metal-and-stars.lua
Normal file
8
lignumis/prototypes/compatibility/metal-and-stars.lua
Normal 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"
|
|
@ -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
|
if technology.unit and technology.unit.ingredients and not table.contains(Lignumis.science_blacklist, technology.name) then
|
||||||
local ingredients = technology.unit.ingredients
|
local ingredients = technology.unit.ingredients
|
||||||
local noMatches = table.filter(ingredients, function(ingredient)
|
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)
|
end)
|
||||||
local yesMatches = table.filter(ingredients, function(ingredient)
|
local yesMatches = table.filter(ingredients, function(ingredient)
|
||||||
return table.contains({ "utility-science-pack", "production-science-pack", "space-science-pack" }, ingredient[1])
|
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 })
|
table.insert(technology.unit.ingredients, { "steam-science-pack", 1 })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue