lead colors

This commit is contained in:
Brevven 2021-01-24 04:26:07 -08:00
parent 1db2ff551d
commit 0c88cd3ac9
4 changed files with 29 additions and 1 deletions

22
lead-recipe-colors.lua Normal file
View file

@ -0,0 +1,22 @@
local util = require("__bzlead__.util");
local items = {"concrete", "refined-concrete", "stone-brick", "stone-wall"}
local colors = {
"acid", "black", "blue", "brown", "cyan", "green",
"orange", "pink", "purple", "red", "white", "yellow"
}
for i, item in pairs(items) do
for j, color in pairs(colors) do
if data.raw.recipe[item.."-"..color] then
util.add_ingredient(item.."-"..color, "lead-plate", 1)
end
if data.raw.recipe[color.."-"..item] then
util.add_ingredient(color.."-"..item, "lead-plate", 1)
end
end
end