making silver

This commit is contained in:
Brevven 2023-03-06 02:55:52 -08:00
parent 8def50f752
commit b1b91af4e8
4 changed files with 38 additions and 1 deletions

View file

@ -1,5 +1,14 @@
local util = require("data-util");
local results = {{"gold-ingot", 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=.1},
}
end
data:extend({
{
type = "item",
@ -13,12 +22,13 @@ data:extend({
{
type = "recipe",
name = "gold-ingot",
main_product = "gold-ingot",
category = "smelting",
order = "d[gold-ingot]",
enabled = false,
energy_required = 1.6,
ingredients = {{"gold-ore", 1}},
results = {{"gold-ingot", 1}},
results = results,
},
{
type = "technology",