Compare commits

..

14 commits
main ... main

Author SHA1 Message Date
Simon Brodtmann
91565921ab 2.1.1 2026-03-16 21:58:15 +01:00
Simon Brodtmann
db5e7a243b Correct renamed "efficiency-module" 2026-03-13 23:13:23 +01:00
Simon Brodtmann
407a9cb80f 2.1.0 2026-03-11 22:09:07 +01:00
Morganite
5d5bba3f8d 248k update fixes 2026-03-11 22:08:20 +01:00
Simon Brodtmann
8249c895c2 Switch to bzlib 2026-03-11 22:08:01 +01:00
Simon Brodtmann
9df5d0fcc3 2.0.3 2025-12-10 19:42:33 +01:00
Simon Brodtmann
ceb4dfe657 Fix autoplace of rich-copper-ore 2025-12-10 19:29:59 +01:00
Simon Brodtmann
4627a45cdb Cleanup 2025-12-10 19:25:46 +01:00
Simon Brodtmann
e11da23987 Fix recipe name of blank-tech-card-silver 2025-11-16 11:53:34 +01:00
pla
1a411368c5
Fix tech coal-liquefaction has no prereq with catalysis off 2025-11-07 11:41:01 +01:00
Simon Brodtmann
99cab50b68 Forgot thanks 2025-11-01 23:00:22 +01:00
Simon Brodtmann
db3137985e 2.0.2 2025-11-01 22:53:22 +01:00
Simon Brodtmann
04a1e986dd Fix booleans being strings 2025-11-01 13:01:42 +01:00
pla
8db4982e5b Fixing K2 matter stuff (#1)
Fixed K2 matter generation
Fixed Matter tech icon size
Sadly the matter conversion recipe icons are not fixed, because the K2 routine doesn't like the 128px icons
Check if Matter recipes already exist, error with Them Thar Hills

![image](/attachments/f1ccec6e-768a-425e-b0dc-1691b8d78037)

Co-authored-by: pla
Reviewed-on: cacklingfiend/bzgold2#1
Co-authored-by: pla <pla@noreply.example.org>
Co-committed-by: pla <pla@noreply.example.org>
2025-11-01 13:01:21 +01:00
13 changed files with 264 additions and 1506 deletions

View file

@ -1,4 +1,28 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 2.1.1
Date: 16.03.2026
Bug Fixes:
- Correct renamed "efficiency-module"
---------------------------------------------------------------------------------------------------
Version: 2.1.0
Date: 11.03.2026
Changes:
- Switch to bzlib - Please install the new dependency
Bug Fixes:
- 248k: Fixes for 0.1.35 breaking changes (thanks Morganite)
---------------------------------------------------------------------------------------------------
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)
---------------------------------------------------------------------------------------------------
Version: 2.0.1 Version: 2.0.1
Date: 21.10.2025 Date: 21.10.2025
Changes: Changes:

View file

@ -1,7 +1,7 @@
local util = require("data-util"); local util = require("data-util");
if mods["248k-Redux"] then if mods["248k-Redux"] then
local au2 = "fu_materials_gold_ingot" local au2 = "fu_gold_ingot"
-- Swap out all 248k gold ingot for BZ gold ingot -- Swap out all 248k gold ingot for BZ gold ingot
for i, recipe in pairs(data.raw.recipe) do for i, recipe in pairs(data.raw.recipe) do

View file

@ -1,6 +1,6 @@
local util = require("data-util"); local util = require("data-util");
-- Update 248k gold production chain to include gold ore -- Update 248k gold production chain to include gold ore
util.add_ingredient("fi_pure_gold_recipe", "gold-ore", 10) util.add_ingredient("fi_pure_gold", "gold-ore", 10)
util.add_to_product("fi_pure_gold_recipe", "fi_materials_pure_gold", 2) util.add_to_product("fi_pure_gold", "fi_pure_gold", 2)

File diff suppressed because it is too large Load diff

View file

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

View file

@ -1,6 +1,6 @@
{ {
"name": "bzgold2", "name": "bzgold2",
"version": "2.0.1", "version": "2.1.1",
"factorio_version": "2.0", "factorio_version": "2.0",
"title": "Noble Metals", "title": "Noble Metals",
"description": "Adds silver, gold, platinum, palladium and more to the base game. Reworks processing units.", "description": "Adds silver, gold, platinum, palladium and more to the base game. Reworks processing units.",
@ -8,6 +8,7 @@
"homepage": "https://discord.gg/ufvFUJtVwk", "homepage": "https://discord.gg/ufvFUJtVwk",
"dependencies": [ "dependencies": [
"base >= 2.0.0", "base >= 2.0.0",
"bzlib",
"? bzfoundry2 >= 2.0.0", "? bzfoundry2 >= 2.0.0",
"? bztitanium2 >= 2.0.27", "? bztitanium2 >= 2.0.27",
"? bzlead2 >= 2.0.29", "? bzlead2 >= 2.0.29",
@ -17,7 +18,7 @@
"? bztin2 >= 2.1.16", "? bztin2 >= 2.1.16",
"? bzgas2", "? bzgas2",
"? bzchlorine2", "? bzchlorine2",
"? 248k-Redux >= 0.1.22", "? 248k-Redux >= 0.1.35",
"? space-exploration >= 0.7.34", "? space-exploration >= 0.7.34",
"? aai-industry", "? aai-industry",
"(?) aai-loaders", "(?) aai-loaders",

View file

@ -1,30 +1,31 @@
-- Matter recipes for Krastorio2 -- Matter recipes for Krastorio2
if mods["Krastorio2"] then if mods["Krastorio2"] then
local util = require("data-util"); local util = require("data-util")
util.k2matter({ if not data.raw.recipe["kr-gold-ore-to-matter"] then
k2matter = { util.k2matter({
material = { type = "item", name = "gold-ore", amount = 30 }, k2matter = {
item_name = "gold-ore", material = { type = "item", name = "gold-ore", amount = 30 },
matter_count = 30, item_name = "gold-ore",
energy_required = 10, matter_count = 30,
need_stabilizer = false, energy_required = 10,
unlocked_by_technology = "gold-matter-processing", needs_stabilizer = false,
}, unlocked_by = "gold-matter-processing",
k2baseicon = "stone", },
icon = {icon = "__bzgold2__/graphics/icons/gold-ore.png", icon_size = 128, scale = 1} icon = { icon = "__bzgold2__/graphics/icons/gold-ore.png", icon_size = 128, scale = 0.5 },
}) })
end
util.k2matter({ if settings.startup["bzgold-silver"].value then
k2matter = { util.k2matter({
material = { type = "item", name = "silver-ore", amount = 8 }, k2matter = {
item_name = "silver-ore", material = { type = "item", name = "silver-ore", amount = 8 },
matter_count = 8, item_name = "silver-ore",
energy_required = 5, matter_count = 8,
need_stabilizer = false, energy_required = 5,
unlocked_by_technology = "silver-matter-processing", needs_stabilizer = false,
}, unlocked_by = "silver-matter-processing",
k2baseicon = "stone", },
icon = {icon = "__bzgold2__/graphics/icons/silver-ore.png", icon_size = 128, scale = 1} icon = { icon = "__bzgold2__/graphics/icons/silver-ore.png", icon_size = 128, scale = 0.5 },
}) })
end
end end

View file

@ -1,4 +1,4 @@
local util = require("data-util"); local util = require("data-util")
if mods.Krastorio2 then if mods.Krastorio2 then
@ -92,7 +92,7 @@ data:extend({
{ {
icon = data.raw.item["gold-ore"].icon, icon = data.raw.item["gold-ore"].icon,
icon_size = data.raw.item["gold-ore"].icon_size, icon_size = data.raw.item["gold-ore"].icon_size,
scale = 0.2, scale = 0.2 * 64 / (data.raw.item["gold-ore"].icon_size or 64),
shift = {0, 4} shift = {0, 4}
} }
}, },

View file

@ -1,4 +1,4 @@
local util = require("data-util"); local util = require("data-util")
if mods.Krastorio2 and util.me.silver() then if mods.Krastorio2 and util.me.silver() then
data:extend({ data:extend({
@ -111,7 +111,7 @@ data:extend({
{ {
icon = data.raw.item["silver-ore"].icon, icon = data.raw.item["silver-ore"].icon,
icon_size = data.raw.item["silver-ore"].icon_size, icon_size = data.raw.item["silver-ore"].icon_size,
scale = 0.2, scale = 0.2 * 64 / (data.raw.item["silver-ore"].icon_size or 64),
shift = {0, 4} shift = {0, 4}
} }
}, },

View file

@ -95,10 +95,10 @@ if util.se6() then
-------- --------
--TODO rebalance SE modules more completely --TODO rebalance SE modules more completely
util.replace_ingredient("effectivity-module-5", "se-holmium-cable", "platinum-ingot", 10) util.replace_ingredient("efficiency-module-5", "se-holmium-cable", "platinum-ingot", 10)
util.replace_ingredient("effectivity-module-5", "se-holmium-cable", "silver-plate") util.replace_ingredient("efficiency-module-5", "se-holmium-cable", "silver-plate")
util.replace_ingredient("effectivity-module-5", "se-holmium-cable", "palladium-ingot", 10) util.replace_ingredient("efficiency-module-5", "se-holmium-cable", "palladium-ingot", 10)
util.replace_ingredient("effectivity-module-5", "se-holmium-cable", "gold-ingot", 10) util.replace_ingredient("efficiency-module-5", "se-holmium-cable", "gold-ingot", 10)
util.replace_ingredient("speed-module-5", "se-heavy-girder", "gold-ingot", 10) util.replace_ingredient("speed-module-5", "se-heavy-girder", "gold-ingot", 10)
util.replace_ingredient("speed-module-5", "se-heavy-girder", "palladium-ingot", 10) util.replace_ingredient("speed-module-5", "se-heavy-girder", "palladium-ingot", 10)

View file

@ -28,10 +28,10 @@ else
end end
util.add_ingredient("speed-module-3", "mlcc", 5) util.add_ingredient("speed-module-3", "mlcc", 5)
util.add_ingredient("effectivity-module-3", "mlcc", 5) util.add_ingredient("efficiency-module-3", "mlcc", 5)
util.add_ingredient("productivity-module-3", "mlcc", 5) util.add_ingredient("productivity-module-3", "mlcc", 5)
util.remove_ingredient("speed-module-3", "cermet") util.remove_ingredient("speed-module-3", "cermet")
util.remove_ingredient("effectivity-module-3", "cermet") util.remove_ingredient("efficiency-module-3", "cermet")
util.remove_ingredient("productivity-module-3", "cermet") util.remove_ingredient("productivity-module-3", "cermet")
util.add_ingredient("gas-extractor", "silver-brazing-alloy", 10) util.add_ingredient("gas-extractor", "silver-brazing-alloy", 10)
@ -72,6 +72,7 @@ end
if mods.Krastorio2 and util.me.silver() then if mods.Krastorio2 and util.me.silver() then
local tc = futil.table.deepcopy(data.raw.recipe["kr-blank-tech-card"]) local tc = futil.table.deepcopy(data.raw.recipe["kr-blank-tech-card"])
tc.name = "blank-tech-card-silver" tc.name = "blank-tech-card-silver"
tc.localised_name = { "item-name.blank-tech-card" }
data:extend({tc}) data:extend({tc})
util.replace_ingredient("blank-tech-card-silver", "copper-cable", "silver-wire") util.replace_ingredient("blank-tech-card-silver", "copper-cable", "silver-wire")
local amt = util.get_amount("kr-blank-tech-card") local amt = util.get_amount("kr-blank-tech-card")

View file

@ -4,154 +4,153 @@ local futil = require("util");
local util = require("data-util"); local util = require("data-util");
if util.me.platinum() or util.me.palladium() then if util.me.platinum() or util.me.palladium() then
if mods.Krastorio2 then if mods.Krastorio2 then
-- no rich copper -- no rich copper
local rm = futil.table.deepcopy(data.raw.recipe["kr-rare-metals"]) local rm = futil.table.deepcopy(data.raw.recipe["kr-rare-metals"])
rm.name = "rare-metals-1" rm.name = "rare-metals-1"
data:extend({rm}) data:extend({ rm })
util.add_unlock("platinum-processing", "rare-metals-1") util.add_unlock("platinum-processing", "rare-metals-1")
util.add_unlock("palladium-processing", "rare-metals-1") util.add_unlock("palladium-processing", "rare-metals-1")
util.add_icon("rare-metals-1", {icon = "__bzgold2__/graphics/icons/platinum-powder.png", util.add_icon("rare-metals-1", { icon = "__bzgold2__/graphics/icons/platinum-powder.png",
icon_size = 64, scale = 0.25, shift = {-8,8}}) icon_size = 64, scale = 0.25, shift = { -8, 8 } })
util.multiply_recipe("kr-rare-metals", 2) util.multiply_recipe("kr-rare-metals", 2)
util.multiply_recipe("rare-metals-1", 2) util.multiply_recipe("rare-metals-1", 2)
util.multiply_recipe("rare-metals-2", 2) util.multiply_recipe("rare-metals-2", 2)
util.set_main_product("kr-rare-metals", "kr-rare-metals") util.set_main_product("kr-rare-metals", "kr-rare-metals")
util.set_product_amount("kr-rare-metals", "kr-rare-metals", 6) util.set_product_amount("kr-rare-metals", "kr-rare-metals", 6)
util.set_main_product("rare-metals-1", "kr-rare-metals") util.set_main_product("rare-metals-1", "kr-rare-metals")
util.set_main_product("rare-metals-2", "kr-rare-metals") util.set_main_product("rare-metals-2", "kr-rare-metals")
if util.me.platinum() and util.me.palladium() then
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, "platinum-powder", 2, {force=true}) util.replace_some_product("rare-metals-1", "kr-rare-metals", 2, "palladium-powder", 2, { force = true })
util.replace_some_product("rare-metals-1", "kr-rare-metals", 2, "palladium-powder", 2, {force=true}) util.replace_some_product("rare-metals-2", "kr-rare-metals", 3, "platinum-powder", 3, { force = true })
util.replace_some_product("rare-metals-2", "kr-rare-metals", 3, "platinum-powder", 3, {force=true}) util.replace_some_product("rare-metals-2", "kr-rare-metals", 3, "palladium-powder", 3, { force = true })
util.replace_some_product("rare-metals-2", "kr-rare-metals", 3, "palladium-powder", 3, {force=true}) elseif util.me.platinum() then
elseif util.me.platinum() then util.replace_some_product("rare-metals-1", "kr-rare-metals", 3, "platinum-powder", 4, { force = true })
util.replace_some_product("rare-metals-1", "kr-rare-metals", 3, "platinum-powder", 4, {force=true}) util.replace_some_product("rare-metals-2", "kr-rare-metals", 6, "platinum-powder", 6, { force = true })
util.replace_some_product("rare-metals-2", "kr-rare-metals", 6, "platinum-powder", 6, {force=true}) elseif util.me.palladium() then
elseif util.me.palladium() then util.replace_some_product("rare-metals-1", "kr-rare-metals", 3, "palladium-powder", 4, { force = true })
util.replace_some_product("rare-metals-1", "kr-rare-metals", 3, "palladium-powder", 4, {force=true}) util.replace_some_product("rare-metals-2", "kr-rare-metals", 6, "palladium-powder", 6, { force = true })
util.replace_some_product("rare-metals-2", "kr-rare-metals", 6, "palladium-powder", 6, {force=true}) end
end
else
local results = {}
if util.me.silver() and util.me.platinum() and util.me.palladium() then
results = {
{type="item", name="copper-plate", amount=1},
{type="item", name="silver-ore", amount=1, probability=0.5},
{type="item", name="platinum-powder", amount=1, probability=0.25},
{type="item", name="palladium-powder", amount=1, probability=0.25},
}
elseif util.me.silver() and util.me.platinum() then
results = {
{type="item", name="copper-plate", amount=1},
{type="item", name="silver-ore", amount=1, probability=0.67},
{type="item", name="platinum-powder", amount=1, probability=0.33},
}
elseif util.me.silver() and util.me.palladium() then
results = {
{type="item", name="copper-plate", amount=1},
{type="item", name="silver-ore", amount=1, probability=0.67},
{type="item", name="palladium-powder", amount=1, probability=0.33},
}
elseif util.me.platinum() and util.me.palladium() then
results = {
{type="item", name="copper-plate", amount=1},
{type="item", name="platinum-powder", amount=1, probability=0.5},
{type="item", name="palladium-powder", amount=1, probability=0.5},
}
elseif util.me.platinum() then
results = {
{type="item", name="copper-plate", amount=2, probability = 0.75},
{type="item", name="platinum-powder", amount=1, probability=0.5},
}
elseif util.me.palladium() then
results = {
{type="item", name="copper-plate", amount=2, probability = 0.75},
{type="item", name="palladium-powder", amount=1, probability=0.5},
}
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)"
else else
log("Replacing vanilla copper-ore autoplace")
local resource_autoplace = require('resource-autoplace');
data.raw.resource["copper-ore"].autoplace = resource_autoplace.resource_autoplace_settings{
name = "copper-ore",
order = "b",
base_density = mods.bzaluminum2 and 3 or 4,
has_starting_area_placement = true,
regular_rq_factor_multiplier = 1.1,
starting_rq_factor_multiplier = 1.1,
candidate_spot_count = 22,
}
end
end
if util.se6() then local results = {}
data:extend({ if util.me.silver() and util.me.platinum() and util.me.palladium() then
{ results = {
type = "autoplace-control", { type = "item", name = "copper-plate", amount = 1 },
category = "resource", { type = "item", name = "silver-ore", amount = 1, probability = 0.5 },
name = "rich-copper-ore", { type = "item", name = "platinum-powder", amount = 1, probability = 0.25 },
richness = true, { type = "item", name = "palladium-powder", amount = 1, probability = 0.25 },
order = "zzzzzzzzzzz" }
}, elseif util.me.silver() and util.me.platinum() then
}) results = {
end { type = "item", name = "copper-plate", amount = 1 },
{ type = "item", name = "silver-ore", amount = 1, probability = 0.67 },
{ type = "item", name = "platinum-powder", amount = 1, probability = 0.33 },
}
elseif util.me.silver() and util.me.palladium() then
results = {
{ type = "item", name = "copper-plate", amount = 1 },
{ type = "item", name = "silver-ore", amount = 1, probability = 0.67 },
{ type = "item", name = "palladium-powder", amount = 1, probability = 0.33 },
}
elseif util.me.platinum() and util.me.palladium() then
results = {
{ type = "item", name = "copper-plate", amount = 1 },
{ type = "item", name = "platinum-powder", amount = 1, probability = 0.5 },
{ type = "item", name = "palladium-powder", amount = 1, probability = 0.5 },
}
elseif util.me.platinum() then
results = {
{ type = "item", name = "copper-plate", amount = 2, probability = 0.75 },
{ type = "item", name = "platinum-powder", amount = 1, probability = 0.5 },
}
elseif util.me.palladium() then
results = {
{ type = "item", name = "copper-plate", amount = 2, probability = 0.75 },
{ type = "item", name = "palladium-powder", amount = 1, probability = 0.5 },
}
else
-- should never happen
results = {
{ type = "item", name = "copper-plate", amount = 2 },
}
end
data:extend({ if data.raw.resource["copper-ore"] then
{ if mods["space-exploration"] then
type = "resource", -- decrease richness of copper a bit (ok if it stacks with aluminum)
name = "rich-copper-ore", data.raw.resource["copper-ore"].autoplace.richness_expression = data.raw.resource["copper-ore"].autoplace.richness_expression .. "*(3/4)"
icon = "__bzgold2__/graphics/icons/rich-copper-ore.png", else
icon_size = 64, icon_mipmaps = 4, log("Replacing vanilla copper-ore autoplace")
flags = {"placeable-neutral"}, local resource_autoplace = require('resource-autoplace');
order="a-b-a", data.raw.resource["copper-ore"].autoplace = resource_autoplace.resource_autoplace_settings {
map_color = {r=0.9, g=0.5, b=0.4}, name = "copper-ore",
tree_removal_probability = 0.7, order = "b",
tree_removal_max_distance = 32 * 32, base_density = mods.bzaluminum2 and 3 or 4,
minable = has_starting_area_placement = true,
{ regular_rq_factor_multiplier = 1.1,
hardness = 1, starting_rq_factor_multiplier = 1.1,
mining_particle = "copper-ore-particle", candidate_spot_count = 22,
mining_time = 1, }
fluid_amount = 1, end
required_fluid = "water", end
result = "rich-copper-ore"
},
collision_box = {{ -0.1, -0.1}, {0.1, 0.1}},
selection_box = {{ -0.5, -0.5}, {0.5, 0.5}},
autoplace = resource_autoplace.resource_autoplace_settings{ if util.se6() then
name = "rich-copper-ore", data.raw.planet.nauvis.map_gen_settings.autoplace_controls["rich-copper-ore"] = {}
autoplace_control_name = util.se6() and "rich-copper-ore" or "copper-ore", data:extend({
order = "b-z",
base_density = 4,
base_spots_per_km2 = 1,
has_starting_area_placement = false,
regular_rq_factor_multiplier = 1,
starting_rq_factor_multiplier = 1,
},
stage_counts = {15000, 9500, 5500, 2900, 1300, 400, 150, 80},
stages =
{ {
sheet = type = "autoplace-control",
{ category = "resource",
name = "rich-copper-ore",
richness = true,
order = "zzzzzzzzzzz"
},
})
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",
name = "rich-copper-ore",
icon = "__bzgold2__/graphics/icons/rich-copper-ore.png",
icon_size = 64, icon_mipmaps = 4,
flags = { "placeable-neutral" },
order = "a-b-a",
map_color = { r = 0.9, g = 0.5, b = 0.4 },
tree_removal_probability = 0.7,
tree_removal_max_distance = 32 * 32,
minable = {
hardness = 1,
mining_particle = "copper-ore-particle",
mining_time = 1,
fluid_amount = 1,
required_fluid = "water",
result = "rich-copper-ore"
},
collision_box = { { -0.1, -0.1 }, { 0.1, 0.1 } },
selection_box = { { -0.5, -0.5 }, { 0.5, 0.5 } },
autoplace = resource_autoplace.resource_autoplace_settings {
name = "rich-copper-ore",
autoplace_control_name = util.se6() and "rich-copper-ore" or "copper-ore",
order = "b-z",
base_density = 4,
base_spots_per_km2 = 1,
has_starting_area_placement = false,
regular_rq_factor_multiplier = 1,
starting_rq_factor_multiplier = 1,
},
stage_counts = { 15000, 9500, 5500, 2900, 1300, 400, 150, 80 },
stages = {
sheet = {
filename = "__bzgold2__/graphics/entity/ores/hr-rich-copper-ore.png", filename = "__bzgold2__/graphics/entity/ores/hr-rich-copper-ore.png",
priority = "extra-high", priority = "extra-high",
size = 128, size = 128,
@ -159,57 +158,56 @@ data:extend({
variation_count = 8, variation_count = 8,
scale = 0.5 scale = 0.5
} }
}, },
},
{
type = "item",
name = "rich-copper-ore",
icon_size = 64, icon_mipmaps=4,
icon = "__bzgold2__/graphics/icons/rich-copper-ore.png",
pictures = {
{filename="__bzgold2__/graphics/icons/rich-copper-ore.png", size=64, scale=0.5},
{filename="__bzgold2__/graphics/icons/rich-copper-ore-1.png", size=64, scale=0.5},
{filename="__bzgold2__/graphics/icons/rich-copper-ore-2.png", size=64, scale=0.5},
{filename="__bzgold2__/graphics/icons/rich-copper-ore-3.png", size=64, scale=0.5},
}, },
subgroup = "raw-resource", {
order = "t-c-a", type = "item",
stack_size = 50 name = "rich-copper-ore",
}, icon_size = 64, icon_mipmaps = 4,
}) icon = "__bzgold2__/graphics/icons/rich-copper-ore.png",
pictures = {
{ filename = "__bzgold2__/graphics/icons/rich-copper-ore.png", size = 64, scale = 0.5 },
{ filename = "__bzgold2__/graphics/icons/rich-copper-ore-1.png", size = 64, scale = 0.5 },
{ filename = "__bzgold2__/graphics/icons/rich-copper-ore-2.png", size = 64, scale = 0.5 },
{ filename = "__bzgold2__/graphics/icons/rich-copper-ore-3.png", size = 64, scale = 0.5 },
},
subgroup = "raw-resource",
order = "t-c-a",
stack_size = 50
},
})
data:extend({
{
type = "recipe",
name = "rich-copper",
localised_name = { "item-name.copper-plate" },
category = "smelting",
main_product = "copper-plate",
order = "d[copper-plate]",
enabled = false,
icons = {
{ icon = "__base__/graphics/icons/copper-plate.png", icon_size = 64, icon_mipmaps = 4 },
{ icon = "__bzgold2__/graphics/icons/rich-copper-ore.png", icon_size = 64, scale = 0.25, shift = { -8, 8 } },
-- {icon = "__bzgold__/graphics/icons/silver-ore.png", icon_size = 128, scale=0.125, shift = {8,8}},
-- {icon = "__bzgold__/graphics/icons/platinum-powder.png", icon_size = 64, scale=0.25, shift = {8,-8}},
-- {icon = "__bzgold__/graphics/icons/palladium-powder.png", icon_size = 64, scale=0.25, shift = {-8,-8}},
},
energy_required = 6.4,
ingredients = { { type = "item", name = "rich-copper-ore", amount = 2 } },
results = results,
},
})
util.add_unlock("platinum-processing", "rich-copper")
util.add_unlock("palladium-processing", "rich-copper")
data:extend({ if util.se6() then
{ se_resources["rich-copper-ore"] = {
type = "recipe", order = "b-z-c",
name = "rich-copper", has_starting_area_placement = false,
localised_name = {"item-name.copper-plate"}, base_density = 4,
category = "smelting", base_spots_per_km2 = 1,
main_product = "copper-plate", }
order = "d[copper-plate]", end
enabled = false, end
icons = {
{icon = "__base__/graphics/icons/copper-plate.png", icon_size = 64, icon_mipmaps=4},
{icon = "__bzgold2__/graphics/icons/rich-copper-ore.png", icon_size = 64, scale=0.25, shift = {-8,8}},
-- {icon = "__bzgold__/graphics/icons/silver-ore.png", icon_size = 128, scale=0.125, shift = {8,8}},
-- {icon = "__bzgold__/graphics/icons/platinum-powder.png", icon_size = 64, scale=0.25, shift = {8,-8}},
-- {icon = "__bzgold__/graphics/icons/palladium-powder.png", icon_size = 64, scale=0.25, shift = {-8,-8}},
},
energy_required = 6.4,
ingredients = {{type="item", name="rich-copper-ore", amount=2}},
results = results,
},
})
util.add_unlock("platinum-processing", "rich-copper")
util.add_unlock("palladium-processing", "rich-copper")
if util.se6() then
se_resources["rich-copper-ore"] = {
order = "b-z-c",
has_starting_area_placement = false,
base_density = 4,
base_spots_per_km2 = 1,
}
end
end
end end

View file

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