lead colors
This commit is contained in:
parent
1db2ff551d
commit
0c88cd3ac9
4 changed files with 29 additions and 1 deletions
|
|
@ -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
|
Version: 0.1.4
|
||||||
Date: 2021-01-22
|
Date: 2021-01-22
|
||||||
Fixes:
|
Fixes:
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
require("lead-recipe-final-stacking")
|
require("lead-recipe-final-stacking")
|
||||||
require("lead-recipe-modules")
|
require("lead-recipe-modules")
|
||||||
|
require("lead-recipe-colors")
|
||||||
|
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bzlead",
|
"name": "bzlead",
|
||||||
"version": "0.1.4",
|
"version": "0.1.5",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Lead",
|
"title": "Lead",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
22
lead-recipe-colors.lua
Normal file
22
lead-recipe-colors.lua
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue