silver
This commit is contained in:
parent
57d32e7f2e
commit
563e44992e
1 changed files with 91 additions and 0 deletions
91
prototypes/silver.lua
Normal file
91
prototypes/silver.lua
Normal file
|
@ -0,0 +1,91 @@
|
|||
local util = require("data-util");
|
||||
|
||||
if util.me.silver() then
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "silver-ore",
|
||||
icon = "__bzgold__/graphics/icons/silver-ore.png",
|
||||
icon_size = 128,
|
||||
subgroup = "raw-resource",
|
||||
order = "b[silver-plate]",
|
||||
stack_size = util.get_stack_size(200),
|
||||
},
|
||||
})
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "silver-plate",
|
||||
icon = "__bzgold__/graphics/icons/silver-plate.png",
|
||||
icon_size = 128,
|
||||
subgroup = "raw-resource",
|
||||
order = "b[silver-plate]",
|
||||
stack_size = util.get_stack_size(100),
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "silver-plate",
|
||||
category = "smelting",
|
||||
order = "d[silver-plate]",
|
||||
enabled = true,
|
||||
energy_required = 1.6,
|
||||
ingredients = {{"silver-ore", 1}},
|
||||
results = {{"silver-plate", 4}},
|
||||
},
|
||||
})
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "silver-wire",
|
||||
icon = "__bzgold__/graphics/icons/silver-wire.png",
|
||||
icon_size = 64, icon_mipmaps = 4,
|
||||
subgroup = util.cablesg,
|
||||
order = "b[silver-wire]",
|
||||
stack_size = util.get_stack_size(200),
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "silver-wire",
|
||||
category = "crafting",
|
||||
order = "d[silver-wire]",
|
||||
enabled = true,
|
||||
energy_required = 1,
|
||||
ingredients = {{"silver-plate", 1}},
|
||||
results = {{"silver-wire", 4}},
|
||||
},
|
||||
})
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "technology",
|
||||
name = "silver-processing",
|
||||
icons = {
|
||||
{
|
||||
icon = "__bzgold__/graphics/icons/silver-plate.png",
|
||||
icon_size = 128,
|
||||
},
|
||||
{
|
||||
icon = "__bzgold__/graphics/icons/silver-wire.png",
|
||||
icon_size = 64, icon_mipmaps=4,
|
||||
},
|
||||
},
|
||||
effects = {
|
||||
{ type = "unlock-recipe", recipe = "silver-plate" },
|
||||
{ type = "unlock-recipe", recipe = "silver-wire" },
|
||||
},
|
||||
unit = {
|
||||
count = 40, time = 15,
|
||||
ingredients = {
|
||||
{"automation-science-pack", 1},
|
||||
{"logistic-science-pack", 1}
|
||||
},
|
||||
},
|
||||
prerequisites = {"advanced-material-processing"},
|
||||
order = "b-b",
|
||||
},
|
||||
})
|
||||
|
||||
util.add_prerequisite("advanced-electronics", "silver-processing")
|
||||
util.add_prerequisite("solar-energy", "silver-processing")
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue