local util = require("data-util"); data:extend({ { type = "item", name = "gold-ingot", icon = "__bzgold__/graphics/icons/gold-ingot.png", icon_size = 128, subgroup = "raw-resource", order = "b[gold-ingot]", stack_size = 100, }, { type = "technology", name = "gold-processing", icons = { { icon = "__bzgold__/graphics/technology/gold-processing.png", icon_size = 256, }, }, effects = { { type = "unlock-recipe", recipe = "gold-ingot" }, }, unit = { count = 100, time = 15, ingredients = util.se6() and { {"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}, {"se-rocket-science-pack", 1}, } or { {"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}, }, }, prerequisites = mods["space-exploration"] and {"se-rocket-science-pack"} or {"chemical-science-pack"}, order = "b-b", }, }) if mods.Krastorio2 then local results = {{type="item", name="gold-ingot", amount=5}} if util.me.silver() and util.me.byproduct() then results = { {type = "item", name="gold-ingot", amount=4}, {type = "item", name="silver-ore", amount=2}, } end data:extend({ { type = "recipe", name = "gold-ingot", main_product = "gold-ingot", category = "smelting", order = "d[gold-ingot]", enabled = false, energy_required = 8, ingredients = {{type="item", name="gold-ore", amount=20}}, results = results, }, }) else local results = {{type="item", name="gold-ingot", amount=1}} if util.me.silver() and util.me.byproduct() then results = { {type = "item", name="gold-ingot", amount=1, probability=.9}, {type = "item", name="silver-ore", amount=1, probability=.2}, } end data:extend({ { type = "recipe", name = "gold-ingot", main_product = "gold-ingot", category = "smelting", order = "d[gold-ingot]", enabled = false, energy_required = 1.6, ingredients = {{type="item", name="gold-ore", amount=2}}, results = results, }, }) end