This commit is contained in:
Brevven 2023-03-19 01:22:36 -07:00
parent 1bafd5c7f2
commit fab73533b9
5 changed files with 76 additions and 4 deletions

View file

@ -11,6 +11,7 @@ require("prototypes/mainboard")
require("prototypes/catalyst")
require("prototypes/recipes-se")
require("cables")
require("prototypes/alchemy")
require("prototypes/enriched-silver")
require("prototypes/enriched-gold")
require("prototypes/pyroflux-gold")

View file

@ -65,10 +65,11 @@ catalyzed=Catalyzed
bzgold-recipe-bypass=Bypass recipes
bzgold-list=Make a list of modified recipes
bzgold-byproduct=Output byproducts
bzogld-silver=Enable silver processing
bzogld-platinum=Enable platinum processing
bzogld-palladium=Enable palladium processing
bzogld-catalysis=Enable catalysis recipes
bzgold-silver=Enable silver processing
bzgold-platinum=Enable platinum processing
bzgold-palladium=Enable palladium processing
bzgold-catalysis=Enable catalysis recipes
bzgold-alchemy=Alchemy
[mod-setting-description]
bzgold-recipe-bypass=Skip modifying these recipes (comma-separated list).

4
me.lua
View file

@ -12,6 +12,10 @@ me.recipes = {
"molten-silver", "molten-gold",
}
function me.alchemy()
return me.get_setting("bzgold-alchemy")
end
function me.byproduct()
return me.get_setting("bzgold-byproduct") and not me.get_setting("bz-no-byproduct")
end

55
prototypes/alchemy.lua Normal file
View file

@ -0,0 +1,55 @@
local util = require("data-util");
if util.me.alchemy() then
data:extend({
{
type = "recipe",
name = "alchemy",
main_product = "gold-ingot",
category = "smelting",
order = "d[gold-ingot]2",
enabled = false,
energy_required = 16,
ingredients = {{"lead-plate", 2}},
results = {{"gold-ingot", 1}},
icons = {
{
icon = "__bzgold__/graphics/icons/gold-ingot.png",
icon_size = 128,
},
{
icon = "__bzlead__/graphics/icons/lead-plate.png",
icon_size = 64, icon_mipmaps = 4, shift = {-8,-8}, scale=0.25,
},
},
},
{
type = "technology",
name = "alchemy",
icons = {
{
icon = "__bzgold__/graphics/technology/gold-processing.png",
icon_size = 256,
},
{
icon = "__bzlead__/graphics/icons/lead-plate.png",
icon_size = 64, icon_mipmaps = 4, shift = {-48,-48}, scale=2,
},
},
effects = {
{ type = "unlock-recipe", recipe = "alchemy" },
},
unit = {
count = 250, time = 30,
ingredients = {
{"automation-science-pack", 1},
{"logistic-science-pack", 1},
{"chemical-science-pack", 1},
},
},
prerequisites = {"gold-processing"},
order = "b-b",
},
})
end

View file

@ -50,3 +50,14 @@ data:extend({
order = "d",
},
})
if mods.bzlead then
data:extend({
{
type = "bool-setting",
name = "bzgold-alchemy",
setting_type = "startup",
default_value = false,
order = "e",
},
})
end