byprodcut
This commit is contained in:
parent
a2c2ebfab3
commit
27042209ff
6 changed files with 24 additions and 4 deletions
3
me.lua
3
me.lua
|
|
@ -8,6 +8,9 @@ me.recipes = {
|
||||||
"temperature-sensor", "mlcc",
|
"temperature-sensor", "mlcc",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function me.byproduct()
|
||||||
|
return me.get_setting("bzgold-byproduct") and not me.get_setting("bz-no-byproduct")
|
||||||
|
end
|
||||||
|
|
||||||
function me.silver()
|
function me.silver()
|
||||||
if me.get_setting("bz-all-intermediates") then return true end
|
if me.get_setting("bz-all-intermediates") then return true end
|
||||||
|
|
|
||||||
|
|
@ -23,12 +23,17 @@ data:extend({
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "palladium-ingot",
|
name = "palladium-ingot",
|
||||||
|
main_product = "palladium-ingot",
|
||||||
category = "smelting",
|
category = "smelting",
|
||||||
order = "d[palladium-ingot]",
|
order = "d[palladium-ingot]",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 1.6,
|
energy_required = 1.6,
|
||||||
ingredients = {{"palladium-powder", 1}},
|
ingredients = {{"palladium-powder", 1}},
|
||||||
results = {{"palladium-ingot", 1}},
|
results = util.me.byproduct() and
|
||||||
|
{
|
||||||
|
{type="item", name="palladium-ingot", amount=1, probability=0.95},
|
||||||
|
{type="item", name="sulfur", amount=1, probability=0.05},
|
||||||
|
} or {{"palladium-ingot", 1}},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
data:extend({
|
data:extend({
|
||||||
|
|
|
||||||
|
|
@ -23,12 +23,17 @@ data:extend({
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "platinum-ingot",
|
name = "platinum-ingot",
|
||||||
|
main_product = "platinum-ingot",
|
||||||
category = "smelting",
|
category = "smelting",
|
||||||
order = "d[platinum-ingot]",
|
order = "d[platinum-ingot]",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 1.6,
|
energy_required = 1.6,
|
||||||
ingredients = {{"platinum-powder", 1}},
|
ingredients = {{"platinum-powder", 1}},
|
||||||
results = {{"platinum-ingot", 1}},
|
results = util.me.byproduct() and
|
||||||
|
{
|
||||||
|
{type="item", name="platinum-ingot", amount=1, probability=0.95},
|
||||||
|
{type="item", name="sulfur", amount=1, probability=0.05},
|
||||||
|
} or {{"platinum-ingot", 1}},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
data:extend({
|
data:extend({
|
||||||
|
|
|
||||||
11
settings.lua
11
settings.lua
|
|
@ -5,14 +5,21 @@ data:extend({
|
||||||
setting_type = "startup",
|
setting_type = "startup",
|
||||||
default_value = "",
|
default_value = "",
|
||||||
allow_blank = true,
|
allow_blank = true,
|
||||||
order = "a",
|
order = "a1",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type = "bool-setting",
|
type = "bool-setting",
|
||||||
name = "bzgold-list",
|
name = "bzgold-list",
|
||||||
setting_type = "startup",
|
setting_type = "startup",
|
||||||
default_value = false,
|
default_value = false,
|
||||||
order = "b",
|
order = "a2",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = "bool-setting",
|
||||||
|
name = "bzgold-byproduct",
|
||||||
|
setting_type = "startup",
|
||||||
|
default_value = true,
|
||||||
|
order = "a3",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type = "bool-setting",
|
type = "bool-setting",
|
||||||
|
|
|
||||||
BIN
thumbnail.png
BIN
thumbnail.png
Binary file not shown.
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 27 KiB |
BIN
thumbnail.xcf
BIN
thumbnail.xcf
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue