Crushing Industry: Molten gold is made from crushed gold

Crushing gold returns moist stromatolite remnant instead of sand
This commit is contained in:
Simon Brodtmann 2025-06-25 00:40:27 +02:00
parent 3075523b3f
commit bf2a844eeb

View file

@ -1,5 +1,4 @@
local item_sounds = require("__base__.prototypes.item_sounds")
local Technology = require("__cf-lib__/data/Technology")
local Recipe = require("__cf-lib__/data/Recipe")
if not mods["crushing-industry"] then return end
@ -79,16 +78,21 @@ data:extend({
}
})
Recipe:new("molten-gold"):replaceIngredient("gold-ore", "crushed-gold-ore", 75)
if settings.startup["crushing-industry-byproducts"].value then
table.insert(data.raw["recipe"]["crushed-gold-ore"].results, { type = "item", name = "gold-ore", amount = 1, probability = 0.05 })
table.insert(data.raw["recipe"]["crushed-gold-ore"].results, { type = "item", name = "sand", amount = 1, probability = 0.02 })
table.insert(data.raw["recipe"]["crushed-gold-ore"].results,
{ type = "item", name = "gold-ore", amount = 1, probability = 0.05 })
table.insert(data.raw["recipe"]["crushed-gold-ore"].results,
{ type = "item", name = "moist-stromatolite-remnant", amount = 1, probability = 0.02 })
end
local gold_recipe = Recipe:new("burner-crusher")
:replaceIngredient("iron-gear-wheel", "wooden-gear-wheel")
:replaceIngredient("iron-plate", "gold-plate")
:assign({
category = settings.startup["lignumis-lumber-mill-more-recipes"].value and "wood-processing-or-assembling" or "crafting"
category = settings.startup["lignumis-lumber-mill-more-recipes"].value and "wood-processing-or-assembling" or
"crafting"
})
gold_recipe:clone("burner-crusher-copper")