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

View file

@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 0.1.5
Date: 2021-01-24
Changes:
- Lead used to make colored items for some mods.
---------------------------------------------------------------------------------------------------
Version: 0.1.4
Date: 2021-01-22
Fixes:

View file

@ -1,5 +1,6 @@
require("lead-recipe-final-stacking")
require("lead-recipe-modules")
require("lead-recipe-colors")
----

View file

@ -1,6 +1,6 @@
{
"name": "bzlead",
"version": "0.1.4",
"version": "0.1.5",
"factorio_version": "1.1",
"title": "Lead",
"author": "Brevven",

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