Compare commits

..

No commits in common. "main" and "2.0.2" have entirely different histories.
main ... 2.0.2

6 changed files with 198 additions and 203 deletions

View file

@ -1,15 +1,8 @@
---------------------------------------------------------------------------------------------------
Version: 2.0.3
Date: 10.12.2025
Bug Fixes:
- Fix tech coal-liquefaction has no prereq with catalysis off
- Fix recipe name of blank-tech-card-silver
- Fix autoplace of rich-copper-ore
---------------------------------------------------------------------------------------------------
Version: 2.0.2
Date: 01.11.2025
Bug Fixes:
- Fix K2 matter integration (thanks pla)
- Fix K2 matter integration
---------------------------------------------------------------------------------------------------
Version: 2.0.1
Date: 21.10.2025

View file

@ -21,5 +21,8 @@ require("compatibility/248k")
local util = require("data-util");
if util.se6() then
end
-- Must be last
util.create_list()

View file

@ -1,6 +1,6 @@
{
"name": "bzgold2",
"version": "2.0.3",
"version": "2.0.2",
"factorio_version": "2.0",
"title": "Noble Metals",
"description": "Adds silver, gold, platinum, palladium and more to the base game. Reworks processing units.",

View file

@ -72,7 +72,6 @@ end
if mods.Krastorio2 and util.me.silver() then
local tc = futil.table.deepcopy(data.raw.recipe["kr-blank-tech-card"])
tc.name = "blank-tech-card-silver"
tc.localised_name = { "item-name.blank-tech-card" }
data:extend({tc})
util.replace_ingredient("blank-tech-card-silver", "copper-cable", "silver-wire")
local amt = util.get_amount("kr-blank-tech-card")

View file

@ -23,6 +23,7 @@ if util.me.platinum() or util.me.palladium() then
util.set_main_product("rare-metals-1", "kr-rare-metals")
util.set_main_product("rare-metals-2", "kr-rare-metals")
if util.me.platinum() and util.me.palladium() then
util.replace_some_product("rare-metals-1", "kr-rare-metals", 2, "platinum-powder", 2, {force=true})
util.replace_some_product("rare-metals-1", "kr-rare-metals", 2, "palladium-powder", 2, {force=true})
@ -73,17 +74,18 @@ if util.me.platinum() or util.me.palladium() then
{type="item", name="copper-plate", amount=2, probability = 0.75},
{type="item", name="palladium-powder", amount=1, probability=0.5},
}
else
-- should never happen
else -- should never happen
results = {
{type="item", name="copper-plate", amount=2},
}
end
if data.raw.resource["copper-ore"] then
if mods["space-exploration"] then
-- decrease richness of copper a bit (ok if it stacks with aluminum)
data.raw.resource["copper-ore"].autoplace.richness_expression = data.raw.resource["copper-ore"].autoplace.richness_expression .. "*(3/4)"
data.raw.resource["copper-ore"].autoplace.richness_expression =
data.raw.resource["copper-ore"].autoplace.richness_expression .. "*(3/4)"
else
log("Replacing vanilla copper-ore autoplace")
local resource_autoplace = require('resource-autoplace');
@ -100,7 +102,6 @@ if util.me.platinum() or util.me.palladium() then
end
if util.se6() then
data.raw.planet.nauvis.map_gen_settings.autoplace_controls["rich-copper-ore"] = {}
data:extend({
{
type = "autoplace-control",
@ -112,9 +113,6 @@ if util.me.platinum() or util.me.palladium() then
})
end
data.raw.planet.nauvis.map_gen_settings.autoplace_settings.entity.settings["rich-copper-ore"] = {}
resource_autoplace.initialize_patch_set("rich-copper-ore", true)
data:extend({
{
type = "resource",
@ -126,7 +124,8 @@ if util.me.platinum() or util.me.palladium() then
map_color = {r=0.9, g=0.5, b=0.4},
tree_removal_probability = 0.7,
tree_removal_max_distance = 32 * 32,
minable = {
minable =
{
hardness = 1,
mining_particle = "copper-ore-particle",
mining_time = 1,
@ -149,8 +148,10 @@ if util.me.platinum() or util.me.palladium() then
},
stage_counts = {15000, 9500, 5500, 2900, 1300, 400, 150, 80},
stages = {
sheet = {
stages =
{
sheet =
{
filename = "__bzgold2__/graphics/entity/ores/hr-rich-copper-ore.png",
priority = "extra-high",
size = 128,
@ -177,6 +178,7 @@ if util.me.platinum() or util.me.palladium() then
},
})
data:extend({
{
type = "recipe",

View file

@ -21,8 +21,6 @@ end
util.add_unlock("processing-unit", "cpu")
util.add_unlock("processing-unit", "mainboard")
if settings.startup["bzgold-catalysis"].value == true then
util.add_prerequisite("coal-liquefaction", "catalysis")
util.remove_prerequisite("coal-liquefaction", "production-science-pack")
util.remove_prerequisite("coal-liquefaction", "advanced-oil-processing")
end